Content
Stat
A labelled number with an optional change that is coloured and arrowed by direction.
Group: Content. Exports: Stat. Halaska addition with no shadcn/ui equivalent.
Usage
import { Stat } from "./halaska-kit";
Stat props
labelstring: Visible label.valueany: The controlled value.changestring:
Accessibility
- Label, value and change are plain text read in that order.
- The change shows an arrow as well as a colour, so direction does not rest on colour alone.
- A change that starts with a minus sign is treated as a fall. Everything else is a rise.
Used in
Halaska UI · Components · Patterns · Screens · Install