SelectDialog API
API documentation for the React SelectDialog component. Learn about the available props.
Import
import { SelectDialog } from 'repopup';
Props
| Option | 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 select field | |
| inputOptions | InputOptionsType | options for the Select dailog component | {} |
| 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 |