import React from 'react'; import { SizeProp } from '../../types/size'; import { CardActionsProps, CardHeaderProps, CardProps } from '../Card/types'; export interface ModalProps { /** * Whether the modal is open or not. */ open: boolean; /** * The content for the title of the modal. */ title?: any; /** * The content for the subtitle of the modal. */ subtitle?: any; /** * Hide the title in the modal. */ titleHidden?: boolean; /** * The content to display inside modal. */ children?: React.ReactNode; /** * Disable animations and open modal instantly. */ instant?: boolean; /** * Control if the user can dismiss/close the modal or not * @default false */ notDismissible?: boolean; /** * Automatically adds sections to modal. */ sectioned?: boolean; /** * Automatically adds sections to modal. */ dimmed?: boolean; /** * Size of modal */ size?: SizeProp | 'auto'; /** * Enable/Disable mobile bottom sheet layout * @default true for sizes: normal,large */ bottomSheet?: boolean; /** * Sets modal to the height of the viewport. */ fullScreen?: boolean; /** * Sets modal to the height of the viewport on small screens only. */ fullScreenMobile?: boolean; /** * Hides Header section */ hideHeader?: boolean; /** * Limits modal height on large sceens with scrolling. */ /** * Removes Scrollable container from the modal content. */ /** * Collection of actions. */ actions?: React.ReactNode; /** * Callback when the modal is closed. */ onClose?: () => void; cardProps?: CardProps; cardHeaderProps?: CardHeaderProps; cardActionsProps?: CardActionsProps; }