UNPKG

@yamada-ui/modal

Version:

Yamada UI modal component

34 lines (32 loc) 771 B
"use client" import { ModalOverlay } from "./chunk-XDFGVPCC.mjs"; import { useDrawer } from "./chunk-64A25YOZ.mjs"; // src/drawer-overlay.tsx import { motionForwardRef } from "@yamada-ui/motion"; import { cx } from "@yamada-ui/utils"; import { jsx } from "react/jsx-runtime"; var DrawerOverlay = motionForwardRef( ({ className, ...rest }, ref) => { const styles = useDrawer(); const css = { ...styles.overlay }; return /* @__PURE__ */ jsx( ModalOverlay, { ref, className: cx("ui-drawer__overlay", className), __css: css, ...rest } ); } ); DrawerOverlay.displayName = "DrawerOverlay"; DrawerOverlay.__ui__ = "DrawerOverlay"; export { DrawerOverlay }; //# sourceMappingURL=chunk-ZMEZYJLF.mjs.map