Components
Pill
Pill - internal base component for pill-shaped UI elements. This is a noop: it applies shared variant styling and renders children. Not intended for direct use in application code. Use Badge (presentational) or Tag (interactive) instead.
Usage
Best practices
Don't reach for
Pillin app code - it's the shared styling base; useBadgefor display-only labels/counts andTagfor interactive (clickable/dismissible) chips.Pillis presentation-only and has no button semantics or dismiss/click handling - those live onTag; addingonClickhere yields a non-accessible pseudo-button.
Props
Also exports
- const
PILL_EMPHASES - const
PILL_ICON_SIZE_MAP - const
PILL_SIZES - const
PILL_TONES - type
PillEmphasis - interface
PillProps - type
PillSize - type
PillTone - const
pillVariants
Composition
Used by