npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@alicd/crui-dashboard

v0.0.23

Published

--- category: Components type: UI Views component: Basic chinese: 展示面板 english: Dashboard ---

Readme


category: Components type: UI Views component: Basic chinese: 展示面板 english: Dashboard

一般在系统的首页展示一些指标数据,也可以快速导航的入口

API

Dashboard

| 成员 | 说明 | 类型 | 默认值 | | ----- | ----- | ----- | ----- | | width | 设定弹层宽度 | number | 100% | | height | 设定弹层高度 | number | 100% | | className | 设置定义的样式 | string | null | | contentPadding | 指定相对于父元素大小的内间距,可以指定上下左右四个方向 | array | [48] | | showGapLine | 是否展示行与列之间的border | boolean | true | | showGapMark | 展示展示行与列交叉的交叉点样式| boolean | true | | column | 每一行多少列| number | 4 | | itemMinWidth | 单个条目的最小宽度 | number | auto | | shadowSize | 鼠标浮上去的阴影大小 | number | 30 | | shadowSkewingSize | 阴影动画的最大调整范围 | number | 20 | | type | 主题风格,三种 primary,secondary,normal | string | normal |

Dashboard.Group

Dashboard 的直接子元素,用于设置分组的 title 信息,其子元素可以是任何节点,子元素如果是 Dashboard.Item ,就可以按照 组件的 API 配置相应的字段信息,如果 Dashboard.Item 满足不了您的需求,请自行设置内部展示的结构

| 成员 | 说明 | 类型 | 默认值 | | ----- | ----- | ----- | ----- | | title | 设置分组信息的 title | string/Element | '' | | className | 设置Group 的 className | string | null | | itemHeight | 设置内容区每一个内容区块的高度 | Number | null | | columnFlex | 设置列的宽度比重,多少列数组中就有几个数字 | Array | null |

Dashboard.Item

设置单个条目的信息,子节点用于填充图表,当然你也可以选择放其他的元素

| 成员 | 说明 | 类型 | 默认值 | | ----- | ----- | ----- | ----- | | count | 数量字段(支持 0-9¥$%.,?₽€*+-<>,超出将以文本展示) | Number/String | null | | title | 标题 | String/Element | null | | subtitle | 副标题 | String/Element | null | | thousandGap |对于 count 字段,通过 , 隔开千位| Boolean | true | | chartWidth | 图标元素的宽度 | number | 180 | | chartHeight | 图标元素的高度 | number | 120 | | href | 单个元素的链接地址,配置该属性,点击可以跳转 | string | null | | target | 页面跳转时的打开方式 | string | '_self' | | className | 设置单个 Item 的 className | string | null |