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
Stat with Indicator
Props
StatLabel,StatHelpText,StatNumbercomposes Text component.StatArrowcomposes Icon component.StatandStatGroupcomposes Box component.
colorScheme
colorSchemeDescription
Color Schemes for Stat are not implemented in the default theme. You can extend the theme to implement them.
Type
stringsize
sizeType
"md"Default
"md"variant
variantDescription
Variants for Stat are not implemented in the default theme. You can extend the theme to implement them.
Type
string