UNPKG

@jengaui/alert-dialog

Version:

Jenga UI Alert Dialog component in React

25 lines (22 loc) 931 B
import * as react from 'react'; import { ReactNode } from 'react'; import { JengaButtonProps } from '@jengaui/button'; import { JengaDialogProps } from '@jengaui/dialog'; interface JengaAlertDialogActionsProps { confirm?: JengaButtonProps | boolean; secondary?: JengaButtonProps; cancel?: JengaButtonProps | boolean; } interface JengaAlertDialogProps extends Omit<JengaDialogProps, 'children'> { content?: ReactNode; /** Whether the dialog is an important prompt */ danger?: boolean; actions?: JengaAlertDialogActionsProps; title?: string; noActions?: boolean; } /** * AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge. */ declare const _AlertDialog: react.ForwardRefExoticComponent<JengaAlertDialogProps & react.RefAttributes<unknown>>; export { _AlertDialog as AlertDialog, JengaAlertDialogActionsProps, JengaAlertDialogProps };