Skip to Content
✨ Just dropped my UI Library — still cooking up some magic! Stay tuned & maybe… hire me  or sponsor me 😉 
DocumentationBadge

Badge

A versatile badge component for displaying status indicators, labels, and tags with multiple visual variants and sizes.

Install Dependencies

npx
quickcode-ui add Badge

All Variants and Sizes

All Badge Variants

Default

NewFeatured

Secondary

DraftMember

Destructive

ErrorFailed

Outline

PendingVerified

Sizes

SmallMediumLarge

Props

PropTypeDefaultDescription
variant"default" | "secondary" | "destructive" | "outline""default"Visual style variant of the badge
size"sm" | "md" | "lg""md"Size variant affecting padding and font size
classNamestring-Additional CSS classes for customization
childrenReact.ReactNode-Content to display inside the badge

Features

  • Multiple Variants: Choose from default, secondary, destructive, and outline styles
  • Three Sizes: Small, medium, and large options for different use cases
  • Icon Support: Seamlessly integrates with Lucide icons
  • Flexible Content: Supports text, icons, or combined content
  • Responsive Design: Maintains consistent appearance across screen sizes
  • Dark Mode Ready: Full support for light and dark themes
  • Semantic HTML: Uses proper span elements with accessible attributes
  • Transition Effects: Smooth color transitions for better user experience
Last updated on