Component
Stat
A dashboard tile: one hero number over a utility label, optionally a link.
import { Stat } from '@loidolt/theme-svelte';
Example
Props
Generated from the component source, so it cannot drift from the implementation.
| Prop | Type | Default | Notes |
|---|---|---|---|
label required | string | — | |
value required | string | number | — | |
class | string | — | |
eyebrow | string | — | Small accent line above the value, in the eyebrow voice. |
href | string | — | |
ref bindable | HTMLElement | null | null |
Plus the attributes of Omit<HTMLAnchorAttributes, 'class'>andOmit<HTMLAttributes<HTMLElement>, 'class'>, forwarded to the root element.