UNPKG

@konstructio/ui

Version:

A set of reusable and customizable React components built for konstruct.io

39 lines (38 loc) 796 B
import { jsx as m } from "react/jsx-runtime"; import { cn as a } from "../../utils/index.js"; import { Card as d } from "../Card/Card.js"; import { Radio as l } from "../Radio/Radio.js"; import { radioCardVariants as e } from "./RadioCard.variants.js"; const f = ({ wrapperClassName: r, theme: i, labelWrapperClassName: t, checked: o, description: s, ...p }) => /* @__PURE__ */ m( d, { "data-theme": i, className: a( e({ className: r }) ), wrapperClassName: a("w-max", r), isActive: o, children: /* @__PURE__ */ m( l, { wrapperClassName: a("w-full h-full p-3 gap-3", t), checked: o, description: s, ...p } ) } ); f.displayName = "KonstructRadioCard"; export { f as RadioCard };