View Source DaisyUIComponents.Badge (DaisyUIComponents v0.4.3)
Badge component
Summary
Functions
Renders a badge.
Functions
Renders a badge.
Examples
<.badge>Default</.badge>
<.badge primary class="gap-2">Primary</.badge>
Attributes
class
(:string
) - Defaults tonil
.color
(:string
) - Must be one of"primary"
,"secondary"
,"accent"
,"info"
,"success"
,"warning"
,"error"
, or"neutral"
.ghost
(:boolean
) - Defaults tofalse
.outline
(:boolean
) - Defaults tofalse
.size
(:string
) - Must be one of"xs"
,"sm"
,"md"
, or"lg"
.- Global attributes are accepted.
Slots
inner_block