StatFlow
Examples
API Reference
Types come from the public API. A dash indicates no default is documented here.
ChartStatFlow props
Public source| Prop | Type | Default | Description |
|---|---|---|---|
key | KeepAliveKey<K, Ends> | undefined | '' | The child's identity among its parent's children of one component, or a kept child's among its author's. The empty string by default. |
onEmit | ((events: never) => NoInfer<Msg> | undefined) | undefined | — | Handle the child's events with a callback, or supply one handler per tag for tagged events. Return a parent message to dispatch it, or `undefined` to ignore the event. |
props.label | string | Required | |
props.value | number | Required | |
props.prefix | string | '' | |
props.suffix | string | '' | |
props.formatOptions | Show type{ readonly style?: "decimal" | "percent" | "currency"; readonly currency?: string; readonly unit?: string; readonly maximumFractionDigits?: number; readonly notation?: "compact" | "standard"; readonly compactDisplay?: "long" | "short"; readonly minimumFractionDigits?: number; readonly minimumIntegerDigits?: number; readonly minimumSignificantDigits?: number; readonly maximumSignificantDigits?: number; readonly currencyDisplay?: "symbol" | "code" | "name" | "narrowSymbol"; readonly unitDisplay?: "long" | "short" | "narrow"; } | { notation: 'standard', maximumFractionDigits: 0, } | |
props.labelClassName | string | 'bk-stat-label text-xs' | |
props.valueClassName | string | 'bk-stat-value text-2xl font-bold' |