@frontify/fondue
Version:
Design system of Frontify
12 lines (11 loc) • 611 B
JavaScript
import { jsx as t } from "react/jsx-runtime";
import { useMenuSection as a } from "@react-aria/menu";
const s = ({ ariaLabel: e, children: r }) => {
const { itemProps: i, groupProps: o } = a({ "aria-label": e });
return /* @__PURE__ */ t("li", { ...i, className: "tw-border-b tw-border-line last:tw-border-0", "data-test-id": "menu-block-divider", children: /* @__PURE__ */ t("ul", { ...o, className: "tw-py-2 tw-px-0 tw-m-0 tw-list-none", "data-test-id": "menu-item-list", children: r }) });
};
s.displayName = "FondueAriaSection";
export {
s as AriaSection
};
//# sourceMappingURL=AriaSection.es.js.map