UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

37 lines (34 loc) 1.5 kB
import * as react from 'react'; import { HTMLAttributes } from 'react'; interface AlertDialogProps extends HTMLAttributes<HTMLDivElement> { /** Title of the alert dialog */ title: string; /** Whether the alert dialog is open (controlled mode) */ isOpen: boolean; /** Function called when the alert dialog is opened or closed (controlled mode) */ onChangeOpen: (open: boolean) => void; /** Whether clicking the backdrop should close the alert dialog */ closeOnBackdropClick?: boolean; /** Whether pressing Escape should close the alert dialog */ closeOnEscape?: boolean; /** Additional CSS classes for the alert dialog content */ className?: string; /** Function called when submit button is clicked */ onSubmit?: (value?: unknown) => void; /** Value to pass to onSubmit function */ submitValue?: unknown; /** Function called when cancel button is clicked */ onCancel?: (value?: unknown) => void; /** Value to pass to onCancel function */ cancelValue?: unknown; /** Description of the alert dialog */ description: string; /** Label of the cancel button */ cancelButtonLabel?: string; /** Label of the submit button */ submitButtonLabel?: string; /** Size of the alert dialog */ size?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large'; } declare const AlertDialog: react.ForwardRefExoticComponent<AlertDialogProps & react.RefAttributes<HTMLDivElement>>; export { AlertDialog };