Skip to main content

SelectDialog API

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

Import


import { SelectDialog } from 'repopup';

Props

OptionTypeDescriptionDefault
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 select field
inputOptionsInputOptionsTypeoptions for the Select dailog component{}
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