UNPKG

@payfit/unity-components

Version:

26 lines (25 loc) 897 B
import { forwardRef as e } from "react"; import { uyTv as t } from "@payfit/unity-themes"; import { jsx as n, jsxs as r } from "react/jsx-runtime"; import { Header as i } from "react-aria-components/Header"; import { ListBoxSection as a } from "react-aria-components/ListBox"; import { Collection as o } from "react-aria-components/Collection"; //#region src/components/list-view/parts/ListViewSection.tsx var s = t({ base: "" }), c = e((e, t) => { let { children: s, title: c, ...l } = e; return /* @__PURE__ */ r(a, { ...l, ref: t, "data-unity-slot": "ListViewSection", children: [/* @__PURE__ */ n(i, { className: "uy:typography-action uy:text-content-neutral-low uy:px-200 uy:mb-50", children: c }), /* @__PURE__ */ n(o, { children: s, items: l.items })] }); }); c.displayName = "ListViewSection"; //#endregion export { c as ListViewSection, s as listViewSection };