Statistic - Keep React
Table of Contents#
- Default Statistic
- Statistic With Progress Rate
- Statistic With Dollar Sign
- Statistic With Filter Button
- Statistic With Avatar
- Statistic With Icon
- API Reference
Default Statistic#
Default Statistic component displays a title with <Statistic.Title>
component and a total number with <Statistic.Amount>
component.
Statistic With Progress Rate#
The Statistic with Progress Rate component offers a concise representation of numerical data along with a corresponding rate. It displays a title (<Statistic.Title>
) followed by the count (<Statistic.Amount>
) and a rate with (<Statistic.Rate>
).
Statistic With Dollar Sign#
The showDollar
prop is set to true
, which indicates that the dollar sign should be shown next to the amount.
Statistic With Filter Button#
The showFilter
prop is set to true
, indicating that a filter button should be displayed alongside the statistic.
Statistic With Avatar#
The Statistic with Avatar component combines numerical data presentation with an accompanying avatar image.
Statistic With Icon#
The Statistic with Icon component seamlessly integrates a meaningful icon with essential numeric data.
API Reference#
Explore the available props for the statistic component
Property | Description | Type | Default |
---|---|---|---|
showDollar | Displays a dollar sign or currency symbol, if applicable. | boolean | false |
showFilter | Indicates whether a filter option should be shown. | boolean | false |
iconBg | Sets the background color variant for the icon. | primary success | primary |
children | Child components and content to be placed within the statistic component. | ReactNode | Content |
filterLabel | Filter label text | string | This Month |
filterData | Filter Data for dropdown | string[] | ['January','...'] |