Skip to Content
DocsResourcesPricingShowcase

Badge

Used to highlight an item's status for quick recognition.

SourceStorybookRecipe
DefaultSuccessRemovedNew

import { Badge } from '@saas-ui/react/badge'
<Badge>Badge</Badge>

Render an icon within the badge directly

NewNew

Badges come in different variants

OutlineSolidSubtleSurface

Badges come in different sizes

NewNewNewNew

PropDefaultType
colorPalette 'gray'
'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink' | 'accent'

The color palette of the component

variant 'subtle'
'solid' | 'subtle' | 'outline' | 'surface' | 'plain'

The variant of the component

size 'sm'
'xs' | 'sm' | 'md' | 'lg'

The size of the component

Previous

Avatar

Next

Breadcrumb