UNPKG

@anoki/fse-ui

Version:

FSE UI components library

3 lines (2 loc) 970 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/RadioCard/RadioCard.css');const e=require("./index.cjs237.js"),d=require("./index.cjs238.js");;/* empty css */const i=require("./index.cjs61.js"),c=({id:s,name:x,value:a,checked:t=!1,children:o,label:l,description:r,onChange:n,className:u})=>e.jsxRuntimeExports.jsxs("label",{className:d.clsx(u,"shadow bg-white br-x4 ui-radio-card",t&&"ui-radio-card-checked"),htmlFor:s,children:[e.jsxRuntimeExports.jsx("input",{type:"radio",id:s,name:x,value:a,checked:t,onChange:n}),e.jsxRuntimeExports.jsxs(i.Col,{gap:"x24",justifyContent:"center",children:[e.jsxRuntimeExports.jsxs(i.Col,{gap:"x4",children:[e.jsxRuntimeExports.jsx("div",{className:"fw-semibold text-slate-20 fs-5 md-fs-4",children:l}),r&&e.jsxRuntimeExports.jsx("p",{className:"fs-6 fw-regular text-slate-20",children:r})]}),o]})]});exports.RadioCard=c; //# sourceMappingURL=index.cjs114.js.map