Statistic
Use the statistic component display concise numerical information
import {Statistic} from '@primer/react-brand'
| Name | Type | Default | Description |
|---|---|---|---|
className | string | Sets a custom class on the root element | |
children | Statistic.Heading, Statistic.Description | Content to be displayed within the component | |
size | 'small''medium''large' | 'large' | The size of the Statistic |
padding | 'none', 'condensed', 'normal', 'spacious' | 'none' | Adding padding to all internal sides of the component |
Forwards all the props from the Heading component, including as, size, and weight.
| Name | Type | Default | Description |
|---|---|---|---|
variant | 'default''muted''accent' | 'default' | Visual presentation of the component |
Forwards most props from the Text component, including size.