Badge
Compact label for status, category, or metadata. Supports solid, dot, and ghost variants with Tailwind colors.
Installation
Install Badge from the Fluid Effect UI registry.
Solid
FictionSciencePhilosophyHistoryPoetry
Dot
FictionSciencePhilosophyHistoryPoetry
Ghost
SuccessProcessingPendingFailed
Colors
AccentGrayRedOrangeAmberYellowLimeGreenEmeraldTealCyanBlueIndigoVioletPurpleFuchsiaPinkRose
AccentGrayRedOrangeAmberYellowLimeGreenEmeraldTealCyanBlueIndigoVioletPurpleFuchsiaPinkRose
API Reference
Types come from the public API. A dash indicates no default is documented here.
Badge props
Public source| Prop | Type | Default |
|---|---|---|
children | View.Children<Msg, R> | — |
variant | "ghost" | "solid" | "dot" | 'solid' |
color | Show type"accent" | "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | 'gray' |
badgeSize | BadgeSize | — |
size | SizeVariant | 'default' |
shape | ShapeVariant | 'rounded' |
className | string | — |