UNPKG

@kwiz/fluentui

Version:
34 lines (33 loc) 1.18 kB
import { DialogModalType } from '@fluentui/react-components'; import React from 'react'; import { ButtonEXProps } from '../types'; export interface IPrompterProps { hideOk?: boolean; hideCancel?: boolean; showCancelInTitle?: boolean; onOK?: () => void; onCancel?: () => void; /** OK */ okButtonText?: string; /** Cancel */ cancelButtonText?: string; title?: string | JSX.Element; okButtonProps?: Partial<ButtonEXProps>; cancelButtonProps?: Partial<ButtonEXProps>; children?: JSX.Element; /** allow to epand the dialog to be wider */ maxWidth?: number | string; /** additional button actions at the bottom */ actions?: JSX.Element[]; /** dialog title actions */ titleActions?: JSX.Element[]; /** specify a specific mount node for this dialog */ mountNode?: HTMLElement | null | { element?: HTMLElement | null; className?: string; }; modalType?: DialogModalType; /** do not fire ok/cancel on esc/enter press */ disableKeyboardActions?: boolean; } export declare const Prompter: (props: IPrompterProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element | null;