UNPKG

@anoki/fse-marche-ui

Version:

FSE UI components library

43 lines (42 loc) 1.04 kB
import { j as r } from "./index.es137.js"; import { clsx as d } from "./index.es139.js"; import './components/ui/RadioCard/RadioCard.css';/* empty css */ import { Col as m } from "./index.es10.js"; const n = ({ id: s, name: e, value: t, checked: a = !1, label: i, description: o, onChange: l }) => /* @__PURE__ */ r.jsxs( "div", { className: d( "shadow bg-white br-x4 ui-radio-card", a && "ui-radio-card-checked" ), children: [ /* @__PURE__ */ r.jsx( "input", { type: "radio", id: s, name: e, value: t, checked: a, onChange: l } ), /* @__PURE__ */ r.jsxs(m, { gap: "x4", children: [ /* @__PURE__ */ r.jsx("label", { htmlFor: s, className: "fw-semibold text-slate-20 fs-4", children: i }), /* @__PURE__ */ r.jsx("p", { className: "fs-6 fw-regular text-slate-20", children: o }) ] }) ] } ); export { n as RadioCard }; //# sourceMappingURL=index.es58.js.map