Analytics · Components
StatCard
Single-metric card with label, value, optional trend and subtitlePublic export
typescript
import { StatCard } from '@happyvertical/smrt-analytics/svelte';- Import path
@happyvertical/smrt-analytics/svelte- Props
- 5
- Props described
- 5 of 5
- Bindable state
- 0
- Callback events
- 0
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
labelstringYesDescriptive label displayed at the top of the card.valuenumber | stringYesNumeric value or text displayed prominently.trend'up' | 'down' | 'flat'NoDirection indicator: up, down, or flat growth.trendPercentnumber | nullNoPercent change; null is a zero baseline shown as 'new', undefined hides the badge.subtitlestringNoSecondary text displayed below the value.Bindable state
This component has no bindable public state.
Callback events
This component declares no callback event props.