@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
29 lines (28 loc) • 1.3 kB
JavaScript
"use client";
require("../../../_virtual/_rolldown/runtime.cjs");
const require_use_props = require("../../../core/MantineProvider/use-props/use-props.cjs");
const require_polymorphic_factory = require("../../../core/factory/polymorphic-factory.cjs");
const require_Box = require("../../../core/Box/Box.cjs");
const require_AppShell_context = require("../AppShell.context.cjs");
const require_AppShell_module = require("../AppShell.module.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/AppShell/AppShellSection/AppShellSection.tsx
const AppShellSection = require_polymorphic_factory.polymorphicFactory((_props) => {
const { classNames, className, style, styles, vars, grow, mod, ...others } = require_use_props.useProps("AppShellSection", null, _props);
const ctx = require_AppShell_context.useAppShellContext();
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
mod: [{ grow }, mod],
...ctx.getStyles("section", {
className,
style,
classNames,
styles
}),
...others
});
});
AppShellSection.classes = require_AppShell_module.default;
AppShellSection.displayName = "@mantine/core/AppShellSection";
//#endregion
exports.AppShellSection = AppShellSection;
//# sourceMappingURL=AppShellSection.cjs.map