Skip to main content

TextAreaDialog API

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

Import


import { TextAreaDialog } 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