feat(modal): add preventCloseOnClickOutside prop

Closes #266
This commit is contained in:
Eric Liu 2020-09-19 09:37:36 -07:00
commit e75be23a49
4 changed files with 22 additions and 2 deletions

View file

@ -44,6 +44,10 @@ export const Default = () => ({
"[data-modal-primary-focus]"
),
size: select("Size (size)", sizes),
preventCloseOnClickOutside: boolean(
"Prevent the modal from closing when clicking outside (preventCloseOnClickOutside)",
false
),
iconDescription: text(
"Close icon description (iconDescription)",
"Close the modal"