Stat
As the name implies, the Stat
component is used to display some statistics.
Import#
import {Stat,StatLabel,StatNumber,StatHelpText,StatArrow,StatGroup,} from "@chakra-ui/react"
Basic Usage#
- Collected Fees
- £0.00
Feb 12 - Feb 28
Editable Example
Stat with Indicator#
- Sent
- 345,670
increased by23.36%
- Clicked
- 45
decreased by9.05%
Editable Example
Props#
StatLabel
,StatHelpText
,StatNumber
composes Text component.StatArrow
composes Icon component.Stat
andStatGroup
composes Box component.
Name | Type | Description | Default |
---|---|---|---|
colorScheme | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow" | "whiteAlpha" | "blackAlpha" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram" | Color Schemes for Stat are not implemented in the default theme. You can extend the theme to implement them. | - |
size | "md" | "md" | |
variant | string | Variants for Stat are not implemented in the default theme. You can extend the theme to implement them. | - |