UNPKG

@stanfordspezi/spezi-web-design-system

Version:

Stanford Biodesign Digital Health Spezi Web Design System

2 lines (1 loc) 479 B
"use strict";const a=require("react/jsx-runtime"),s=require("./Radio-Bn4tOLYJ.js"),o=require("./SideLabel-DZB5B2or.js"),d=require("./index-DwV9MiDB.js"),t=({options:u,onChange:l,className:c,direction:r="column",...i})=>a.jsx(s.Root2,{className:d.cn("flex gap-x-4 gap-y-2",r==="column"?"flex-col":"flex-wrap",c),onValueChange:e=>l==null?void 0:l(e),...i,children:u.map(e=>a.jsx(o.SideLabel,{label:e.label,children:a.jsx(s.Radio,{value:e.value})},e.value))});exports.RadioGroup=t;