Analytics · Components
TrendBadge
Up/down/flat trend indicator with percentage deltaPublic export
typescript
import { TrendBadge } from '@happyvertical/smrt-analytics/svelte';- Import path
@happyvertical/smrt-analytics/svelte- Props
- 2
- Props described
- 2 of 2
- Bindable state
- 0
- Callback events
- 0
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
trend'up' | 'down' | 'flat'YesDirection of change: up, down, or flat.percentnumber | nullYesPercent change; null means a zero baseline, shown as 'new' rather than 0%.Bindable state
This component has no bindable public state.
Callback events
This component declares no callback event props.