@yamada-ui/modal
Version:
Yamada UI modal component
34 lines (32 loc) • 803 B
JavaScript
"use client"
import {
ModalCloseButton
} from "./chunk-PXV3LL5A.mjs";
import {
useDrawer
} from "./chunk-64A25YOZ.mjs";
// src/drawer-close-button.tsx
import { forwardRef } from "@yamada-ui/core";
import { cx } from "@yamada-ui/utils";
import { jsx } from "react/jsx-runtime";
var DrawerCloseButton = forwardRef(
({ className, ...rest }, ref) => {
const styles = useDrawer();
const css = { ...styles.closeButton };
return /* @__PURE__ */ jsx(
ModalCloseButton,
{
ref,
className: cx("ui-drawer__close-button", className),
__css: css,
...rest
}
);
}
);
DrawerCloseButton.displayName = "DrawerCloseButton";
DrawerCloseButton.__ui__ = "DrawerCloseButton";
export {
DrawerCloseButton
};
//# sourceMappingURL=chunk-PXCCIW5O.mjs.map