UNPKG

@stanfordspezi/spezi-web-design-system

Version:

Stanford Biodesign Digital Health Spezi Web Design System

27 lines (26 loc) 658 B
import { jsx as r } from "react/jsx-runtime"; import { b as s, a as p } from "./Radio-ByriDdpd.mjs"; import { S as f } from "./SideLabel-JL7Te7Jc.mjs"; import { c as i } from "./index-2NvaPZWc.mjs"; const b = ({ options: e, onChange: l, className: m, direction: o = "column", ...c }) => /* @__PURE__ */ r( s, { className: i( "flex gap-x-4 gap-y-2", o === "column" ? "flex-col" : "flex-wrap", m ), onValueChange: (a) => l == null ? void 0 : l(a), ...c, children: e.map((a) => /* @__PURE__ */ r(f, { label: a.label, children: /* @__PURE__ */ r(p, { value: a.value }) }, a.value)) } ); export { b as R };