UNPKG

@kopexa/sight

Version:

Kopexa Sight Design System — React component library for GRC applications

34 lines (31 loc) 774 B
"use client"; // src/components/radio-card/radiomark.tsx import { ark } from "@ark-ui/react/factory"; import { cn, dataAttr } from "@kopexa/shared-utils"; import { radiomark } from "@kopexa/theme"; import { jsx } from "react/jsx-runtime"; var Radiomark = (props) => { const { checked, disabled, size, variant, className, unstyled, ...restProps } = props; const recipe = radiomark({ size, variant }); return /* @__PURE__ */ jsx( ark.span, { "data-checked": dataAttr(checked), "data-disabled": dataAttr(disabled), className: unstyled ? className : cn(recipe, className), ...restProps, children: checked ? /* @__PURE__ */ jsx("span", { className: "dot" }) : null } ); }; export { Radiomark };