UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

30 lines (29 loc) 1.09 kB
"use client"; import { useProps } from "../../../core/MantineProvider/use-props/use-props.mjs"; import { factory } from "../../../core/factory/factory.mjs"; import { Box } from "../../../core/Box/Box.mjs"; import { useEmptyStateContext } from "../EmptyState.context.mjs"; import EmptyState_module_default from "../EmptyState.module.mjs"; import { jsx } from "react/jsx-runtime"; //#region packages/@mantine/core/src/components/EmptyState/EmptyStateTitle/EmptyStateTitle.tsx const EmptyStateTitle = factory((_props) => { const { classNames, className, style, styles, vars, children, order, mod, ...others } = useProps("EmptyStateTitle", null, _props); const ctx = useEmptyStateContext(); return /* @__PURE__ */ jsx(Box, { component: order ? `h${order}` : "div", mod, ...ctx.getStyles("title", { className, style, classNames, styles }), ...others, children }); }); EmptyStateTitle.classes = EmptyState_module_default; EmptyStateTitle.displayName = "@mantine/core/EmptyStateTitle"; //#endregion export { EmptyStateTitle }; //# sourceMappingURL=EmptyStateTitle.mjs.map