UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

27 lines (26 loc) 834 B
import { ApphouseFormV2Styles } from '../components/Form/ApphouseFormV2'; import { ApphouseComponent } from '../components/component.interfaces'; import { PopupStyles } from '../components/popup/Popup.interface'; import React from 'react'; interface PromptFilenameStyles { popup?: PopupStyles; form?: ApphouseFormV2Styles; } export interface PromptFilenameProps extends ApphouseComponent<PromptFilenameStyles> { /** * The title of the prompt * @default 'Save as' */ title?: string; /** * The callback function to be executed when the user confirms the prompt * @param filename * @returns */ onConfirm: (filename: string) => void; } /** * A prompt that will ask the user to enter a file name */ export declare const PromptFilename: React.FC<PromptFilenameProps>; export {};