Badge

Badge, Label, whatever you want to call it. A simple status indicator with colored background and text.

Active In progress Draft Canceled

Add this module

terminal
mix dizzy.add badge

Component API

Badge.badge

Attributes and slots for Badge.badge
NameTypeDefault Values / slot attributes
rest :global nil
variant :atom :neutral :neutral, :success, :warning, :danger
inner_block slot Required

Keyboard & accessibility

Noninteractive. Status is conveyed through text as well as color.