UNPKG

@kelvininc/react-ui-components

Version:

Kelvin UI Components for React applications

10 lines (9 loc) 441 B
import React, { PropsWithChildren } from 'react'; import { JSX } from '@kelvininc/ui-components'; import { IModalController } from './types'; export type ModalOverlayProps = { rootId?: string; isOpen: boolean; } & PropsWithChildren<JSX.KvModal>; export declare function useModal(initialState?: boolean): IModalController; export declare function ModalOverlay({ rootId, isOpen, ...otherProps }: ModalOverlayProps): React.ReactPortal;