Stats#

Stats display numeric data or key metrics in a structured layout.

Import#

TSX
import { Stats } from '@sigx/daisyui';

Basic Usage#

TSX
Loading preview...

Multiple Stats#

TSX
Loading preview...

Vertical Layout#

TSX
Loading preview...

With Figure / Icons#

Use Stats.Figure to add icons or images alongside stats.

TSX
Loading preview...

With Actions#

Use Stats.Actions to add buttons or links below the stat.

TSX
Loading preview...

Centered Items#

Apply place-items-center class to center stat content.

TSX
Loading preview...

Responsive#

Use vertical with responsive class overrides for mobile-vertical, desktop-horizontal layouts.

TSX
Loading preview...

With Figure and Avatar#

TSX
Loading preview...

Props#

Stats (container)#

PropTypeDefaultDescription
verticalbooleanfalseStack stats vertically
horizontalbooleanfalseForce horizontal layout
shadowbooleanfalseAdd shadow to container
classstringAdditional CSS classes

Stats.Item#

PropTypeDefaultDescription
classstringAdditional CSS classes

Stats.Title / Stats.Value / Stats.Desc / Stats.Figure / Stats.Actions#

PropTypeDefaultDescription
classstringAdditional CSS classes