Badge

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

Installation

Import the component from the passport-ui package.

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

Usage

Basic example showing how to use the component.

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

Additional resources

Documentation and examples are available in Storybook.