UNPKG

@szum-tech/design-system

Version:

Szum-Tech design system with tailwindcss support

35 lines (31 loc) 1.3 kB
'use strict'; var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs'); var lucideReact = require('lucide-react'); var radixUi = require('radix-ui'); var jsxRuntime = require('react/jsx-runtime'); function Checkbox({ className, ...props }) { return /* @__PURE__ */ jsxRuntime.jsx( radixUi.Checkbox.Root, { "data-slot": "checkbox", className: chunkH2BWO3SI_cjs.cn( "peer border-input dark:bg-input/30 size-4 shrink-0 rounded border shadow-xs transition-shadow outline-none", "data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary", "aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error", "disabled:cursor-not-allowed disabled:opacity-50", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", className ), ...props, children: /* @__PURE__ */ jsxRuntime.jsx( radixUi.Checkbox.Indicator, { "data-slot": "checkbox-indicator", className: "grid place-content-center text-current transition-none", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-3.5" }) } ) } ); } exports.Checkbox = Checkbox;