Svelte · Overview
MetricWidget
Metric widget (#3727): one number with an optional caption and change. It renders from the loaded data only; the loader decides what the number means.Public export
typescript
import { MetricWidget } from '@happyvertical/smrt-svelte/overview';- Import path
@happyvertical/smrt-svelte/overview- Props
- 8
- Props described
- 4 of 8
- Bindable state
- 0
- Callback events
- 0
- Verified release
- 0.62.10
Props
NameTypeRequiredDescription
idstringYesNot describedoptionsOverviewOptionsYesNot describeddataData | undefinedYesNot describedspannumberYesNot describedtitlestringYesHeading shown by the frame (the `title` option, else the type title).localestringYesBCP-47 locale for number formatting.iconComponentComponent<{ name: string; size?: number; }>NoThe host's renderer for icon names that are not built in.presentation'card' | 'plain'NoHow the grid frames tiles right now (`card` when editing, whatever the grid's `presentation` is otherwise). Widgets that draw their own frame drop it under `plain`.Bindable state
This component has no bindable public state.
Callback events
This component declares no callback event props.