UNPKG

@arolariu/components

Version:

🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

25 lines (24 loc) • 874 B
import { jsx } from "react/jsx-runtime"; import { cn } from "../../lib/utilities.js"; import badge_module from "./badge.module.js"; import * as __rspack_external_react from "react"; const variantStyles = { default: badge_module["default"], secondary: badge_module.secondary, destructive: badge_module.destructive, outline: badge_module.outline }; function badgeVariants({ variant = "default", className } = {}) { return cn(badge_module.badge, variantStyles[variant], className); } const Badge = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, variant = "default", ...props }, ref)=>/*#__PURE__*/ jsx("div", { ref: ref, className: badgeVariants({ variant, className }), ...props })); Badge.displayName = "Badge"; export { Badge, badgeVariants }; //# sourceMappingURL=badge.js.map