InputDialog API
API documentation for the React InputDialog component. Learn about the available props.
Import
import { InputDialog } from 'repopup';
Props
Props | Type | Description | Default |
---|---|---|---|
closeOnBackdropClick | boolean | Wheather or not to close the popup on clicking the backdrop | true |
title | string | Used for the title of the popup | |
cancelButtonText | string | Use 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 | |
submitButtonText | string | Use this to change the text on the "Submit"-button. | 'Submit' |
label | string | Used to give a label to the input field | |
open | boolean | Boolean describing if the modal should be shown or not. | required |
onClose | Function | Function that will be run when the modal is requested to be closed | required |