Examples
StatusMap.For<T>() maps each value to a colour and optional icon; the label falls back to the value's name.
Labels stay with the caller (they are usually localized); Color and Icon override the map, and a chip works without one.
Small (default), Medium and Large.
Playground
<StatusChip
Label="Shipped"
Color="Color.Primary"
Icon="local_shipping" />API
<StatusChip>
DaisyBlazor.DataA filled Chip variant for status indicators.
Parameters
- Color Color?= null
Colour applied to the chip. Overrides Map when set; leave unset to let the map decide.
- Icon string= null
Optional leading icon (a Material Symbols ligature). Overrides Map when set.
- Label string= null
Text displayed inside the chip. Optional when Status is supplied, in which case it falls back to Status.ToString().
- Map StatusMap= null
Declarative status → colour/icon map. Build one per status type with For<T>() and reuse it across list, card and detail views.
- Size Size= Size.Small
Chip size; defaults to Small.
- Status object= null
The status value to render. Combined with Map it drives the colour and icon.
- Class string= null
Additional CSS classes applied to the chip.
- Style string= null
Inline style applied to the chip.