{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"badge","type":"registry:ui","title":"Badge","description":"","dependencies":["class-variance-authority","radix-ui"],"registryDependencies":[],"files":[{"path":"badge.tsx","type":"registry:ui","content":"import { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n [\n \"relative inline-flex shrink-0 items-center justify-center w-fit border border-transparent font-medium whitespace-nowrap outline-none transition-shadow\",\n \"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50\",\n \"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-3\",\n ],\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground\",\n outline: \"border-border bg-transparent dark:bg-input/32\",\n secondary: \"bg-secondary text-secondary-foreground\",\n info: \"bg-info text-white\",\n success: \"bg-success text-white\",\n warning: \"bg-warning text-white\",\n destructive: \"bg-destructive text-white\",\n focus: \"bg-focus text-focus-foreground\",\n invert: \"bg-invert text-invert-foreground\",\n \"primary-light\":\n \"border-primary/10 bg-primary/10 text-primary dark:border-primary/25 dark:bg-primary/15 dark:text-primary\",\n \"warning-light\":\n \"border-warning/15 bg-warning/10 text-warning-foreground dark:border-warning/25 dark:bg-warning/15 dark:text-warning\",\n \"success-light\":\n \"border-success/15 bg-success/10 text-success-foreground dark:border-success/25 dark:bg-success/15 dark:text-success\",\n \"info-light\":\n \"border-info/15 bg-info/10 text-info-foreground dark:border-info/25 dark:bg-info/15 dark:text-info\",\n \"destructive-light\":\n \"border-destructive/15 bg-destructive/10 text-destructive-foreground dark:border-destructive/25 dark:bg-destructive/15 dark:text-destructive\",\n \"invert-light\":\n \"border-invert/15 bg-invert/10 text-foreground dark:border-invert/45 dark:bg-invert/35 dark:text-invert-foreground\",\n \"focus-light\":\n \"border-focus/15 bg-focus/10 text-focus-foreground dark:border-focus/25 dark:bg-focus/15 dark:text-focus\",\n \"primary-outline\":\n \"bg-background border-border text-primary dark:bg-input/30\",\n \"warning-outline\":\n \"bg-background border-border text-warning-foreground dark:bg-input/30\",\n \"success-outline\":\n \"bg-background border-border text-success-foreground dark:bg-input/30\",\n \"info-outline\":\n \"bg-background border-border text-info-foreground dark:bg-input/30\",\n \"destructive-outline\":\n \"bg-background border-border text-destructive-foreground dark:bg-input/30\",\n \"invert-outline\":\n \"bg-background border-border text-invert-foreground dark:bg-input/30\",\n \"focus-outline\":\n \"bg-background border-border text-focus-foreground dark:bg-input/30\",\n },\n size: {\n xs: \"px-1 py-0.25 text-[0.6rem] leading-none h-4 min-w-4 gap-1\",\n sm: \"px-1 py-0.25 text-[0.625rem] leading-none h-4.5 min-w-4.5 gap-1\",\n default: \"px-1.25 py-0.5 text-xs h-5 min-w-5 gap-1\",\n lg: \"px-1.5 py-0.5 text-xs h-5.5 min-w-5.5 gap-1\",\n xl: \"px-2 py-0.75 text-sm h-6 min-w-6 gap-1.5\",\n },\n /** `default`: active style radius. `full`: pill radius. */\n radius: {\n default:\n \"rounded-4xl\",\n full: \"rounded-full\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n radius: \"default\",\n },\n }\n)\n\ninterface BadgeProps\n extends React.ComponentProps<\"span\">, VariantProps {\n asChild?: boolean\n}\n\nfunction Badge({\n className,\n variant,\n size,\n radius,\n asChild = false,\n ...props\n}: BadgeProps) {\n const Comp = asChild ? Slot.Root : \"span\"\n\n return (\n \n )\n}\n\nexport { Badge, badgeVariants, type BadgeProps }","target":"components/neui/badge.tsx"}],"cssVars":{"light":{"destructive-foreground":"var(--color-red-800)","success":"var(--color-emerald-500)","success-foreground":"var(--color-emerald-900)","info":"var(--color-violet-500)","info-foreground":"var(--color-violet-900)","warning":"var(--color-yellow-500)","warning-foreground":"var(--color-yellow-900)","invert":"var(--color-zinc-900)","invert-foreground":"var(--color-zinc-50)"},"dark":{"destructive-foreground":"var(--color-red-600)","success":"var(--color-emerald-500)","success-foreground":"var(--color-emerald-600)","info":"var(--color-violet-500)","info-foreground":"var(--color-violet-600)","warning":"var(--color-yellow-500)","warning-foreground":"var(--color-yellow-600)","invert":"var(--color-zinc-700)","invert-foreground":"var(--color-zinc-50)"}}}