Modal - Keep React
Table of Contents#
Default Modal#
Modal components typically appear as a small window or dialog box that appears on top of the existing content, effectively "blocking" interaction with the underlying interface until the modal is dismissed.
Customizable Modal#
You can customize our modal as your desire except the modal functionality.
API Reference#
Here is a list of the props that you can pass to the modal component:
Property | Description | Type | Default |
---|---|---|---|
open | The controlled open state of the modal. | boolean | false |
onOpenChange | Event handler called when the open state of the modal changes. | setState | Null |
Reference#
Our modal component is built using the @radix-ui/react-dialog
package. For more information , follow the documentation @radix-ui/react-dialog.