View Source DaisyUIComponents.Badge (DaisyUIComponents v0.1.6)

Badge component

https://daisyui.com/components/badge/

Summary

Functions

Renders a badge.

Functions

Renders a badge.

Examples

<.badge>Default</.badge>
<.badge primary class="gap-2">Primary</.badge>

Attributes

  • class (:string) - Defaults to nil.
  • color (:string) - Must be one of "primary", "secondary", "accent", "info", "success", "warning", "error", or "neutral".
  • ghost (:boolean) - Defaults to false.
  • outline (:boolean) - Defaults to false.
  • size (:string) - Must be one of "xs", "sm", "md", or "lg".
  • Global attributes are accepted.

Slots

  • inner_block