Badge
A compact label for status, counts, or categories.
Import
import { Badge } from '@oztix/roadie-components'
Examples
Default
<Badge>Badge</Badge>
Emphasis
Sizes
<div className='flex flex-row flex-wrap items-center gap-2'> <Badge size='sm'>Small</Badge> <Badge size='md'>Medium</Badge> </div>
Intents
With indicator
Use the indicator prop to show a dot before the text. Add indicatorPulse for a slow pulse animation.
With icons
Place icons directly as children. SVGs are automatically sized to match the text.
API reference
Badge
indicator?boolean
Show a dot indicator before the text
indicatorPulse?boolean
Animate the indicator with a slow pulse
intent?"neutral" | "brand" | "brand-secondary" | "accent" | "danger" | "success" | "warning" | "info" | null
emphasis?"strong" | "normal" | "subtle" | "subtler" | null
size?"sm" | "md" | null