Examples
Figure holds an icon; DescColor tints the description for trends.
Vertical stacks the stats; Shadow lifts the container.
The Actions slot sits under the description.
API
<Stats>
DaisyBlazorParameters
- Shadow bool= false
Apply the daisyUI shadow utility to the stats container.
- Vertical bool= false
Stack stats vertically instead of the default horizontal layout.
- Class string= null
Extra CSS classes merged onto the .stats container.
- Style string= null
Inline CSS styles applied to the .stats container.
Content
- ChildContent RenderFragment
One or more <Stat> components placed inside this container.
<Stat>
DaisyBlazorParameters
- Desc string= null
Supplementary description shown below the value.
- DescColor Color?= null
Semantic color applied to the stat-desc text (maps to text-{token}).
- Title string= null
Stat label shown above the value (e.g. "Total Flights").
- Value string= null
Primary numeric or text value displayed prominently.
- Class string= null
Extra CSS classes merged onto the root stat element.
- Style string= null
Inline CSS styles applied to the root stat element.
Content
- Actions RenderFragment
Optional action content (e.g. buttons or links) rendered below the description.
- Figure RenderFragment
Optional figure content (e.g. an icon or avatar) rendered in stat-figure.