import React from "react"; import ModalBody from "./ModalBody.js"; import ModalFooter from "./ModalFooter.js"; import ModalHeader from "./ModalHeader.js"; import { ModalProps } from "./types.js"; interface ModalComponent extends React.ForwardRefExoticComponent> { Header: typeof ModalHeader; Body: typeof ModalBody; Footer: typeof ModalFooter; } /** * A component that displays a modal dialog. * * @see [📝 Documentation](https://aksel.nav.no/komponenter/core/modal) * @see 🏷️ {@link ModalProps} * * @example * State change with `useRef` * ```jsx * const ref = useRef(null); * * , * heading: "My heading", * }} * > * * Hello world * * * * * * * ``` * @example * State change with `useState` * ```jsx * const [open, setOpen] = useState(false); * setOpen(false)} * aria-labelledby="modal-heading" * > * * My heading * * * Hello world * * * ``` */ export declare const Modal: ModalComponent; export default Modal;