ivt
Version:
Ivt Components Library
3 lines (2 loc) • 1.5 kB
JavaScript
import{c as r}from"./utils-C-nkZ_Ir.mjs";import{Slot as e}from"@radix-ui/react-slot";import{cva as t}from"class-variance-authority";import a from"react";const n=t("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs cursor-default font-medium w-fit whitespace-nowrap shrink-0 gap-1 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-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",positive:"border-transparent bg-positive text-positive-foreground shadow hover:bg-positive/80",warning:"border-transparent bg-warning text-warning-foreground shadow hover:bg-warning/80","warning-outline":"border-transparent bg-warning-foreground text-warning hover:bg-warning-foreground/80",info:"border-transparent bg-info text-info-foreground shadow hover:bg-info/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function o({className:t,variant:o,asChild:i=!1,...s}){const d=i?e:"span";return a.createElement(d,{"data-slot":"badge",className:r(n({variant:o}),t),...s})}export{o as B,n as b};
//# sourceMappingURL=badge-Dk_-nk4S.mjs.map