This component no longer exists. It was in shadcn/ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-13 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
badge
agileflow-projectquestorg/badgeRemovedComponent
shadcn/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/badge.jsonSource
1import * as React from "react"2import { cva, type VariantProps } from "class-variance-authority"3import { Slot } from "radix-ui"45import { cn } from "@/registry/bases/radix/lib/utils"67const badgeVariants = cva(8 "h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-colors overflow-hidden group/badge",9 {10 variants: {11 variant: {12 default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",13 secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",14 destructive: "bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",15 outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",16 ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",17 link: "text-primary underline-offset-4 hover:underline",18 },19 },20 defaultVariants: {21 variant: "default",22 },23 }24)2526function Badge({27 className,28 variant = "default",29 asChild = false,30 ...props31}: React.ComponentProps<"span"> &32 VariantProps<typeof badgeVariants> & { asChild?: boolean }) {33 const Comp = asChild ? Slot.Root : "span"3435 return (36 <Comp37 data-slot="badge"38 data-variant={variant}39 className={cn(badgeVariants({ variant }), className)}40 {...props}41 />42 )43}4445export { Badge, badgeVariants }
