UNPKG

@cgi-learning-hub/ui

Version:

@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features

38 lines (37 loc) 1.06 kB
import { jsxs as t, jsx as o } from "react/jsx-runtime"; import { F as e, a as s } from "../../FormLabel-DtxJI2CU.js"; import { R as n } from "../../RadioGroup-CjUaFqjJ.js"; import { F as r, R as a } from "../../Radio-DiyDpiVL.js"; const i = (l) => /* @__PURE__ */ t(e, { children: [ /* @__PURE__ */ o(s, { id: "radio-buttons-group-label", children: "Label" }), /* @__PURE__ */ t( n, { "aria-labelledby": "radio-buttons-group-label", defaultValue: "first", name: "radio-buttons-group", ...l, children: [ /* @__PURE__ */ o(r, { value: "first", control: /* @__PURE__ */ o(a, {}), label: "First" }), /* @__PURE__ */ o(r, { value: "second", control: /* @__PURE__ */ o(a, {}), label: "Second" }), /* @__PURE__ */ o(r, { value: "third", control: /* @__PURE__ */ o(a, {}), label: "Third" }) ] } ) ] }), c = { title: "Components/RadioGroup", component: i }, p = { args: { row: !1 } }, f = { args: { row: !0 } }; export { p as Default, f as Row, c as default };