UNPKG

@frontify/fondue

Version:
25 lines (24 loc) 695 B
import { jsx as o } from "react/jsx-runtime"; import { useRef as a } from "react"; import { useMemoizedId as i } from "../../hooks/useMemoizedId.es.js"; import { checkIfContainInteractiveElements as l } from "../../utilities/elements.es.js"; var c = /* @__PURE__ */ ((e) => (e.Default = "Default", e.Weak = "Weak", e))(c || {}); const d = ({ ...e }) => { const t = i(), r = a(null), n = l(r.current); return /* @__PURE__ */ o( "div", { role: "tabpanel", ref: r, id: `${t}-content`, "aria-labelledby": t, tabIndex: n ? -1 : 0, ...e } ); }; export { d as RadioButton, c as RadioButtonEmphasis }; //# sourceMappingURL=RadioButton.es.js.map