StatCardWithSparkline Stat Card With Sparkline
业务组件
日活
12,480
何时使用
适用于Stat Card With Sparkline相关场景。
代码示例
基础用法
tsx
import { StatCardWithSparkline } from "@chaos_team/chaos-ui/business"
export function Basic() {
return <StatCardWithSparkline />
}API / Props
StatCardWithSparkline
| Prop | Type | Default | 说明 |
|---|---|---|---|
className | string | — | 自定义样式类名 |
label | string | — | 标签文本 |
value | string | number | — | 当前值(受控) |
trend | number | — | |
sparklineData | number[] | — | |
| ...rest | React.HTMLAttributes | — | 透传原生 DOM 属性 |
注意事项
- 无障碍: 组件遵循 WAI-ARIA 最佳实践。
📘 完整交互式示例与控件属性请查看 Storybook 文档。