UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

32 lines (31 loc) 1.05 kB
"use client"; import { useProps } from "../../core/MantineProvider/use-props/use-props.mjs"; import { useStyles } from "../../core/styles-api/use-styles/use-styles.mjs"; import { factory } from "../../core/factory/factory.mjs"; import { Box } from "../../core/Box/Box.mjs"; import Typography_module_default from "./Typography.module.mjs"; import { jsx } from "react/jsx-runtime"; //#region packages/@mantine/core/src/components/Typography/Typography.tsx const Typography = factory((_props) => { const props = useProps("Typography", null, _props); const { classNames, className, style, styles, unstyled, attributes, ...others } = props; return /* @__PURE__ */ jsx(Box, { ...useStyles({ name: "Typography", classes: Typography_module_default, props, className, style, classNames, styles, unstyled, attributes })("root"), ...others }); }); Typography.classes = Typography_module_default; Typography.displayName = "@mantine/core/Typography"; //#endregion export { Typography }; //# sourceMappingURL=Typography.mjs.map