@payfit/unity-components
Version:
20 lines (19 loc) • 731 B
JavaScript
import { useBreakpointListener as e } from "../../../hooks/use-breakpoint-listener.js";
import { forwardRef as t } from "react";
import { jsx as n } from "react/jsx-runtime";
import { RadioGroup as r } from "react-aria-components/RadioGroup";
//#region src/components/selectable-card/selectable-card-radio-group/SelectableCardRadioGroup.tsx
var i = t(({ children: t, value: i, ...a }, o) => {
let s = e(), c = s === "xs" || s === "sm";
return /* @__PURE__ */ n(r, {
...a,
orientation: c ? "vertical" : "horizontal",
value: i,
className: "uy:flex uy:md:flex-row uy:sm:flex-col uy:gap-150",
ref: o,
children: t
});
});
i.displayName = "SelectableCardRadioGroup";
//#endregion
export { i as SelectableCardRadioGroup };