UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

26 lines (24 loc) 728 B
import { createStyled } from "./styled.js"; //#region src/core/system/factory.ts function factory() { const cache = /* @__PURE__ */ new Map(); return new Proxy(createStyled, { apply: function(_target, _thisArg, [el, options]) { return createStyled(el, options); }, get: function(_target, el) { if (!cache.has(el)) cache.set(el, createStyled(el)); return cache.get(el); } }); } /** * `styled` is an object of JSX elements enabled with Yamada UI's style system, * and can also be used as a function for custom components to receive Yamada UI's style system. * * @see https://yamada-ui.com/docs/components/styled */ const styled = factory(); //#endregion export { styled }; //# sourceMappingURL=factory.js.map