fui-fancyui
Version:
FancyUI Libary
24 lines (23 loc) • 767 B
JavaScript
"use client";
import { jsxs as c, jsx as d } from "react/jsx-runtime";
import o from "../../atoms/Typography/Typography.js";
import { StyledFieldset as f, StyledLegend as m } from "./Fieldset.style.js";
function b(i) {
const { children: n, legend: l, alignLegend: r, typographySettings: e, disabled: t, ...a } = i;
return /* @__PURE__ */ c(f, { $disabled: t, ...a, children: [
l && /* @__PURE__ */ d(m, { $alignLegend: r, children: /* @__PURE__ */ d(
o,
{
elType: (e == null ? void 0 : e.elType) || "span",
variant: (e == null ? void 0 : e.variant) ?? "interactiveLg",
fontWeight: (e == null ? void 0 : e.fontWeight) ?? "bold",
...e,
children: l
}
) }),
n
] });
}
export {
b as default
};