@konstructio/ui
Version:
A set of reusable and customizable React components built for konstruct.io
36 lines (35 loc) • 710 B
JavaScript
import { jsx as r } from "react/jsx-runtime";
import { cn as m } from "../../utils/index.js";
import { Card as t } from "../Card/Card.js";
import { Radio as e } from "../Radio/Radio.js";
import { radioCardVariants as l } from "./RadioCard.variants.js";
const w = ({
wrapperClassName: o,
theme: i,
labelWrapperClassName: p,
checked: a,
...s
}) => /* @__PURE__ */ r(
t,
{
"data-theme": i,
className: m(
l({
className: o
})
),
wrapperClassName: "w-max",
isActive: a,
children: /* @__PURE__ */ r(
e,
{
wrapperClassName: m("w-full h-full p-3 gap-3", p),
checked: a,
...s
}
)
}
);
export {
w as RadioCard
};