UNPKG

@trail-ui/react

Version:
27 lines (24 loc) 660 B
import { InternalModalContext } from "./chunk-66DN4CGG.mjs"; // src/modal/modal-body.tsx import { clsx } from "@trail-ui/shared-utils"; import { forwardRef, useContext } from "react"; import { jsx } from "react/jsx-runtime"; function ModalBody(props, ref) { const { children, className, ...otherProps } = props; const { slots, classNames } = useContext(InternalModalContext); return /* @__PURE__ */ jsx( "div", { ref, className: slots.body({ class: clsx(classNames == null ? void 0 : classNames.body, className) }), ...otherProps, children } ); } var _ModalBody = forwardRef(ModalBody); export { _ModalBody };