Skip to content

StatFlow

Examples

42Requests

API Reference

Types come from the public API. A dash indicates no default is documented here.

ChartStatFlow props

Public source
PropTypeDefaultDescription
keyKeepAliveKey<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.labelstringRequired
props.valuenumberRequired
props.prefixstring''
props.suffixstring''
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.labelClassNamestring'bk-stat-label text-xs'
props.valueClassNamestring'bk-stat-value text-2xl font-bold'