@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
35 lines (34 loc) • 1.1 kB
JavaScript
"use client";
import { useProps } from "../../core/MantineProvider/use-props/use-props.mjs";
import { useStyles } from "../../core/styles-api/use-styles/use-styles.mjs";
import { polymorphicFactory } from "../../core/factory/polymorphic-factory.mjs";
import { Box } from "../../core/Box/Box.mjs";
import Center_module_default from "./Center.module.mjs";
import { jsx } from "react/jsx-runtime";
//#region packages/@mantine/core/src/components/Center/Center.tsx
const Center = polymorphicFactory((_props) => {
const props = useProps("Center", null, _props);
const { classNames, className, style, styles, unstyled, vars, inline, mod, attributes, ...others } = props;
const getStyles = useStyles({
name: "Center",
props,
classes: Center_module_default,
className,
style,
classNames,
styles,
unstyled,
attributes,
vars
});
return /* @__PURE__ */ jsx(Box, {
mod: [{ inline }, mod],
...getStyles("root"),
...others
});
});
Center.classes = Center_module_default;
Center.displayName = "@mantine/core/Center";
//#endregion
export { Center };
//# sourceMappingURL=Center.mjs.map