@payfit/unity-components
Version:
27 lines (26 loc) • 787 B
JavaScript
import { forwardRef as e } from "react";
import { uyTv as t } from "@payfit/unity-themes";
import { jsx as n } from "react/jsx-runtime";
//#region src/components/side-panel/parts/SidePanelContent.tsx
var r = t({ slots: {
base: [
"uy:bg-surface-neutral",
"uy:flex uy:flex-col uy:flex-1 uy:min-h-0 uy:overflow-hidden",
"uy:w-full"
],
scroller: ["uy:flex-1 uy:overflow-y-auto uy:overflow-x-hidden uy:p-300", "uy:h-full uy:min-h-0"]
} }), i = e(({ children: e, ...t }, i) => {
let { base: a, scroller: o } = r();
return /* @__PURE__ */ n("section", {
ref: i,
className: a(),
...t,
children: /* @__PURE__ */ n("div", {
className: o(),
children: e
})
});
});
i.displayName = "SidePanelContent";
//#endregion
export { i as SidePanelContent, r as sidePanelContent };