# Badge

> A small status or count label.

- Category: [Actions & feedback](https://tarve.dev/docs.md#actions)
- Import: `import { Badge } from "@tarve/core";`
- Props type: `BadgeProps`
- Source: [packages/core/src/controls.ts:149](https://github.com/omarcosr/tarve/blob/main/packages/core/src/controls.ts#L149)

## Usage

```tsx title="Badge.tsx"
import { Badge, Row } from "@tarve/core";

<Row gap={6}>
  <Badge>New</Badge>
  <Badge variant="secondary">Beta</Badge>
  <Badge variant="outline">v0.4</Badge>
  <Badge variant="destructive">Failed</Badge>
</Row>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"default" \| "secondary" \| "outline" \| "destructive"` | `"default"` |  |

## Common props

Shared by every component (descriptions: https://tarve.dev/docs.md#common-props): `children`, `class`, `className`, `highlight`, `id`, `key`, `motionFrom`, `onHighlight`, `onPaste`, `onPointerLeave`, `onPointerMove`, `onSize`, `onTransitionEnd`, `rovingGroup`, `style`.

Previous: [ButtonGroup](https://tarve.dev/docs/components/ButtonGroup.md) · Next: [Progress](https://tarve.dev/docs/components/Progress.md)

---

Tarve v0.13.8 · HTML version: https://tarve.dev/docs/components/Badge · Index for agents: https://tarve.dev/llms.txt
