Stats
Stats display numeric data or key metrics in a structured layout.
Import
import { Stats } from '@sigx/daisyui';
Basic Usage
Loading preview...
Multiple Stats
Loading preview...
Vertical Layout
Loading preview...
With Figure / Icons
Use Stats.Figure to add icons or images alongside stats.
Loading preview...
With Actions
Use Stats.Actions to add buttons or links below the stat.
Loading preview...
Centered Items
Apply place-items-center class to center stat content.
Loading preview...
Responsive
Use vertical with responsive class overrides for mobile-vertical, desktop-horizontal layouts.
Loading preview...
With Figure and Avatar
Loading preview...
Props
Stats (container)
| Prop | Type | Default | Description |
|---|---|---|---|
| vertical | boolean | false | Stack stats vertically |
| horizontal | boolean | false | Force horizontal layout |
| shadow | boolean | false | Add shadow to container |
| class | string | — | Additional CSS classes |
Stats.Item
| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | Additional CSS classes |
Stats.Title / Stats.Value / Stats.Desc / Stats.Figure / Stats.Actions
| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | Additional CSS classes |