UNPKG

@kelvininc/react-ui-components

Version:

Kelvin UI Components for React applications

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