UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

33 lines (32 loc) 1.12 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 { useDataListContext } from "../DataList.context.mjs"; import DataList_module_default from "../DataList.module.mjs"; import { jsx } from "react/jsx-runtime"; //#region packages/@mantine/core/src/components/DataList/DataListItemLabel/DataListItemLabel.tsx const DataListItemLabel = factory((_props) => { const { classNames, className, style, styles, vars, children, mod, ...others } = useProps("DataListItemLabel", null, _props); const ctx = useDataListContext(); const stylesApiProps = { classNames, styles }; return /* @__PURE__ */ jsx(Box, { component: "dt", ...ctx.getStyles("itemLabel", { ...stylesApiProps, className, style }), mod, ...others, children }); }); DataListItemLabel.classes = DataList_module_default; DataListItemLabel.displayName = "@mantine/core/DataListItemLabel"; //#endregion export { DataListItemLabel }; //# sourceMappingURL=DataListItemLabel.mjs.map