Badge

A small visual element for labeling, categorizing, or organizing items.

Installation

Import the component from the passport-ui package.

components/example.tsx
1import { Badge } from "passport-ui";

Usage

Basic example showing how to use the component.

components/example.tsx
1<Badge variant="default">Default</Badge>
2<Badge variant="secondary">Secondary</Badge>
3<Badge variant="outline">Outline</Badge>
4<Badge variant="destructive">Destructive</Badge>
5
6{/* Semantic variants */}
7<Badge variant="info">Info</Badge>
8<Badge variant="success">Success</Badge>
9<Badge variant="warning">Warning</Badge>

Additional resources

Documentation and examples are available in Storybook.