@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
36 lines (35 loc) • 1.33 kB
JavaScript
"use client";
require("../../_virtual/_rolldown/runtime.cjs");
const require_use_props = require("../../core/MantineProvider/use-props/use-props.cjs");
const require_use_styles = require("../../core/styles-api/use-styles/use-styles.cjs");
const require_polymorphic_factory = require("../../core/factory/polymorphic-factory.cjs");
const require_Box = require("../../core/Box/Box.cjs");
const require_Center_module = require("./Center.module.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/Center/Center.tsx
const Center = require_polymorphic_factory.polymorphicFactory((_props) => {
const props = require_use_props.useProps("Center", null, _props);
const { classNames, className, style, styles, unstyled, vars, inline, mod, attributes, ...others } = props;
const getStyles = require_use_styles.useStyles({
name: "Center",
props,
classes: require_Center_module.default,
className,
style,
classNames,
styles,
unstyled,
attributes,
vars
});
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
mod: [{ inline }, mod],
...getStyles("root"),
...others
});
});
Center.classes = require_Center_module.default;
Center.displayName = "@mantine/core/Center";
//#endregion
exports.Center = Center;
//# sourceMappingURL=Center.cjs.map