UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

30 lines (29 loc) 808 B
"use client"; require("../../_virtual/_rolldown/runtime.cjs"); let react_jsx_runtime = require("react/jsx-runtime"); //#region packages/@mantine/core/src/core/factory/factory.tsx function identity(value) { return value; } function factory(ui) { const Component = ui; Component.extend = identity; Component.withProps = (fixedProps) => { const Extended = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, { ...fixedProps, ...props }); Extended.extend = Component.extend; Extended.displayName = `WithProps(${Component.displayName})`; return Extended; }; return Component; } function genericFactory(ui) { return factory(ui); } //#endregion exports.factory = factory; exports.genericFactory = genericFactory; exports.identity = identity; //# sourceMappingURL=factory.cjs.map