--- title: Badge description: Displays a badge or a component that looks like a badge. component: true --- ## Installation CLI Manual ```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 `asChild` prop to make another component look like a badge. Here's an example of a link that looks like a badge. ```tsx showLineNumbers import { Link } from "next/link" import { Badge } from "@/components/ui/badge" export function LinkAsBadge() { return ( Badge ) } ```