--- title: Badge description: Displays a badge or a component that looks like a badge. component: true --- ## Installation ```bash npx shadcn-ui add badge ``` Manual Installation 1. Copy and paste the following code into your project. This is the `` primitive. You can place it in a file at `components/ui/badge.tsx`. ## 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