UNPKG

@smart-react-components/ui

Version:
29 lines (28 loc) 1.07 kB
import { ContentElement, PaletteProp, SetState } from '@smart-react-components/core/types'; import { TransitionAfterCallback, TransitionBeforeCallback } from '@smart-react-components/transition/types'; import React from 'react'; export interface Props { action?: (text: string, isConfirmed: boolean) => (void | Promise<void>); afterHide?: TransitionAfterCallback; afterShow?: TransitionAfterCallback; beforeHide?: TransitionBeforeCallback; beforeShow?: TransitionBeforeCallback; cancelButtonLabel?: string; cancelButtonPalette?: PaletteProp; confirmButtonLabel?: string; confirmButtonPalette?: PaletteProp; defaultValue?: string; message: string; placeholder?: string; hasHideAnimation?: boolean; hasShowAnimation?: boolean; hasOverlayBackground?: boolean; hasOverlayBlurEffect?: boolean; setStatus?: SetState<boolean>; status?: boolean; title?: ContentElement; transitionClassName?: string; transitionDuration?: number; } declare const Prompt: React.FC<Props>; export default Prompt;