v0.1 public beta early access on GitHub
Home / Components / badge

BadgeiOS

Compact status pill with variants, icons and pulse option.

$ npx lumioui add badge
import { Badge } from "@/components/ui/badge/badge";
Badgebadge.tsx
badge/badge.tsx open

Live preview — the real component, driven by the props below.

Props10
variant? "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "info" | "neutral" | "glass"
size? "sm" | "md" | "lg"
className? string
textClassName? string
icon? IconName | null Leading icon name. Ignored when `loading` is true. / / Leading glyph — pass `null` to suppress the variant's auto status icon.
loading? boolean Show a spinner instead of the icon. Default false.
pulse? boolean Soft repeating ping ring behind the badge — for live / notification states.
contentKey? string | number When this key changes, the content rolls vertically (swap animation).
accessibilityLabel? string Accessible label — announced instead of the visible text.
children? React.ReactNode
Badge — Glassglass.tsx
badge/variants/glass.tsx open

Compact status pill with variants, icons and pulse option.

Badge — Loadingloading.tsx
badge/variants/loading.tsx open

Compact status pill with variants, icons and pulse option.

Badge — Statusstatus.tsx
badge/variants/status.tsx open

Compact status pill with variants, icons and pulse option.

Badge — Variantsvariants.tsx
badge/variants/variants.tsx open

Compact status pill with variants, icons and pulse option.