UNPKG

@clubmed/trident-ui

Version:

Shared ClubMed React UI components

23 lines (22 loc) 716 B
import { FunctionComponent, PropsWithChildren, ReactNode } from 'react'; import { BackdropProps } from './Backdrop'; export type ClosePopinCallback = () => void; export interface PopinFooterProps { closeLabel?: string; onClose: ClosePopinCallback; } export interface PopinProps { title?: ReactNode; closeLabel?: string; onClose: ClosePopinCallback; isVisible: boolean; className?: string; bodyClassName?: string; showCloseButton?: boolean; target?: BackdropProps['target']; /** * @deprecated use popinFooter slot instead */ Footer?: FunctionComponent<PopinFooterProps> | false; } export declare const Popin: FunctionComponent<PropsWithChildren<PopinProps>>;