UNPKG

@korautils/forms

Version:

![image](https://github.com/user-attachments/assets/ccad1514-7b15-4952-9856-fd03b971403a)

2 lines 777 B
import n from'@mui/material/Radio';import p from'@mui/material/RadioGroup';import i from'@mui/material/FormControlLabel';import u from'@mui/material/FormControl';import b from'@mui/material/FormLabel';import {jsxs,jsx}from'react/jsx-runtime';function d({label:a,value:e,options:l=[{value:"male",label:"Hombre"},{value:"female",label:"Mujer"}],onChange:t}){return jsxs(u,{children:[jsx(b,{id:"demo-row-radio-buttons-group-label",children:a}),jsx(p,{row:!0,"aria-labelledby":"demo-row-radio-buttons-group-label",name:"row-radio-buttons-group",value:e,onChange:t,children:l.map((r,m)=>jsx(i,{value:r.value,control:jsx(n,{}),label:r.label},m))})]})}export{d as default};//# sourceMappingURL=RadioGroupPreview-7STBCDV4.mjs.map //# sourceMappingURL=RadioGroupPreview-7STBCDV4.mjs.map