✨(react) add closeOnEsc props to Modal
We want to be able to disable closing modals by pressing escape in some cases.
This commit is contained in:
@@ -149,6 +149,12 @@ You can change this behavior by passing the `closeOnClickOutside` prop.
|
||||
|
||||
<Canvas of={Stories.CloseOnClickOutside} story={{inline: false}}/>
|
||||
|
||||
## Close on escape
|
||||
|
||||
By default, the modal will be closed when you press the `esc` key. You can change this behavior by passing the `closeOnEsc` prop.
|
||||
|
||||
<Canvas of={Stories.DontCloseOnEsc} story={{inline: false}}/>
|
||||
|
||||
## Pre Built Modals
|
||||
|
||||
As we know that developers love to have handy shortcuts for common use cases, we provide some pre built modals that we
|
||||
|
||||
Reference in New Issue
Block a user