eldav1d-marvel-ui
Version:
UI library for (and from) Playing with Marvel API
3 lines (2 loc) • 649 B
JavaScript
;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),u=require("react"),o=require("../CheckboxGroup/CheckboxGroup.cjs"),a=({options:t,children:l})=>(u.useEffect(()=>{t.forEach((e,r)=>{const c=l(e,r);if(u.isValidElement(c)&&c.type!==o.default)throw new Error("Children must be an instance of CheckboxGroup")})},[t,l]),s.jsx("ul",{className:"md:h-full flex flex-col md:flex-row gap-2 md:items-center",children:t.map((e,r)=>s.jsx("li",{className:"flex items-center",children:l(e,r)},`${e}${r}`))}));exports.default=a;
//# sourceMappingURL=CheckboxList.cjs.map