# Badge
Inline badge component for labels, tags, and status indicators. Supports
multiple visual variants for different use cases.
## Installation
```bash
deno run -A jsr:@lockness/ui add badge
```
## Usage
```tsx
import { Badge } from '@lockness/ui/components'
New
```
## Props
| Prop | Type | Default | Description |
| -------- | -------------------------------------------------------- | ----------- | -------------------------- |
| variant | `'default' \| 'secondary' \| 'destructive' \| 'outline'` | `'default'` | Visual style variant |
| children | `unknown` | - | Badge content |
| class | `string` | - | Additional CSS class names |
| id | `string` | - | Element id attribute |
## Variants
### Default
Primary colored badge for highlighting important items.
```tsx
New
Featured
```
### Secondary
Subtle badge using secondary colors for less prominent labels.
```tsx
Beta
Draft
```
### Destructive
Alert/error style badge for warnings or critical status.
```tsx
Error
Expired
```
### Outline
Bordered badge with transparent background.
```tsx
Draft
Pending
```
## Examples
### Status Indicators
```tsx
Active
Pending
Inactive
Draft
```
### In a Card
```tsx
Project Alpha
In Progress
Project description here...
```
### Custom Styling
```tsx
// Smaller badge
Small
// Larger badge
Large
// Custom colors
Success
```
### Tags List
```tsx
React
TypeScript
Tailwind
Deno
```
## CSS Variables
```css
@theme {
--badge-padding-x: 0.625rem;
--badge-padding-y: 0.125rem;
--badge-font-size: 0.75rem;
--badge-font-weight: 500;
--radius: 0.5rem;
}
```