Elements Stat
Back to Elements

Stat

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

stat

Statistic display with value and label with dark mode support.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
variant "default" | "card" | "ghost" "default"
align "left" | "center" | "right" "left"
label
value
change
changeType
description
icon Snippet
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.