Stylish Statistic
A labeled metric display — the web "Statistic/Stat" pattern from Ant Design and Chakra UI.
Shows a label above a prominent value, with an optional delta indicator (up/down arrow) for changes.
Parameters
The main metric text, e.g. "¥1,200,000".
Modifier applied to the root column.
Optional caption rendered above value.
Optional change text, e.g. "+12.5%". When non-null, shown with a directional arrow.
Whether delta represents an improvement. When true the delta is tinted with deltaColor; otherwise it is tinted with the error color.
Typography of value. Defaults to MaterialTheme.typography.headlineMedium.
Typography of label. Defaults to MaterialTheme.typography.bodySmall.
Typography of delta. Defaults to MaterialTheme.typography.bodySmall.
Color of a positive delta. Defaults to MaterialTheme.colorScheme.primary.
Color of value. Defaults to MaterialTheme.colorScheme.onSurface.
Alignment of the column contents. Defaults to Alignment.Start.