UNPKG

@alice-ui/react

Version:
27 lines (24 loc) 673 B
import { InternalModalContext } from "./chunk-HKYLAWFX.mjs"; // src/modal/modal-header.tsx import { clsx } from "@alice-ui/shared-utils"; import { useContext } from "react"; import { Heading } from "react-aria-components"; import { jsx } from "react/jsx-runtime"; function ModalHeader(props) { const { children, className, ...otherProps } = props; const { slots, classNames } = useContext(InternalModalContext); return /* @__PURE__ */ jsx( Heading, { slot: "title", className: slots.header({ class: clsx(classNames == null ? void 0 : classNames.header, className) }), ...otherProps, children } ); } export { ModalHeader };