Badge
Displays a badge or a component that looks like a badge.
Installation
›pnpm dlx shadcn@latest add @evolphin/badge
Usage
import { Badge } from "@/components/ui/badge"<Badge>Badge</Badge>Type Definitions
interface BadgeProps {
/** The visual style of the badge */
variant?: "default" | "secondary" | "destructive" | "outline";}Examples
Default
Badge
Secondary
Secondary
Destructive
Destructive
Outline
Outline
API Reference
Badge
| Prop | Type | Default | Description |
|---|---|---|---|
variant | `"default" \ | "secondary" \ | "destructive" \ |
className | string | - | Additional CSS classes |
Accessibility
- The
Badgecomponent renders as adivby default, but can be changed to any other element usingasChild.