{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "badge", "type": "registry:ui", "title": "Badge", "description": "Small status label in three variants.", "dependencies": [], "registryDependencies": [], "files": [ { "path": "registry/starkui/badge.tsx", "content": "import * as React from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nconst variants = {\n default: \"bg-foreground text-background shadow-xs\",\n outline: \"border border-border/80 bg-background/50 text-foreground shadow-xs\",\n muted: \"bg-muted text-muted-foreground border border-border/40\",\n success: \"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border border-emerald-500/20\",\n glow: \"glass border border-border/60 text-foreground shadow-sm backdrop-blur-md\",\n destructive: \"bg-destructive/10 text-destructive border border-destructive/20\",\n} as const;\n\nexport interface BadgeProps extends React.HTMLAttributes {\n variant?: keyof typeof variants;\n showDot?: boolean;\n}\n\nexport function Badge({\n className,\n variant = \"default\",\n showDot = false,\n children,\n ...props\n}: BadgeProps) {\n return (\n \n {showDot && (\n \n \n \n \n )}\n {children}\n \n );\n}\n", "type": "registry:ui", "target": "components/ui/badge.tsx" } ] }