---
title: Badge
description: Displays a badge or a component that looks like a badge.
component: true
---
## Installation
CLIManual
```bash
npx shadcn@latest add badge
```
Copy and paste the following code into your project.Update the import paths to match your project setup.
## Usage
```tsx
import { Badge } from "@/components/ui/badge"
```
```tsx
Badge
```
### Link
You can use the `badgeVariants` helper to create a link that looks like a badge.
```tsx
import { badgeVariants } from "@/components/ui/badge"
```
```tsx
Badge
```
## Examples
### Default
---
### Secondary
---
### Outline
---
### Destructive