Skip to main content

InputDialog API

API documentation for the React InputDialog component. Learn about the available props.

Import


import { InputDialog } from 'repopup';

Props

PropsTypeDescriptionDefault
closeOnBackdropClickbooleanWheather or not to close the popup on clicking the backdroptrue
titlestringUsed for the title of the popup
cancelButtonTextstringUse this to change the text on the "Cancel"-button.'Cancel'
onSubmitCallback(value: any) => void;Function that will be run when the "Submit"-button is clicked
submitButtonTextstringUse this to change the text on the "Submit"-button.'Submit'
labelstringUsed to give a label to the input field
openbooleanBoolean describing if the modal should be shown or not.required
onCloseFunctionFunction that will be run when the modal is requested to be closedrequired

Demos