Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/docs/components/modal.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Modal (Spec)

## Notes

- use Create Portal for Markup
- Proper settings to control the trigger
- Proper way to adjust size, position, etc.
- Overlay Customization and option to not show it
- Lock scroll when modal is visible
- Close on ClickOutside
- Close on EscapeKey
- use `<dialog>` element instead of `<div>`

| Attributes | Values | Optional ? |
| :-------------------- | :------------------: | ---------: |
| `isOpen` | boolean (true/false) | No |
| `onClose` | function | Yes |
| `onOpen` | function | Yes |
| `size` | string | Yes |
| `showOverlay` | boolean | Yes |
| `closeOnOutsideClick` | boolean | Yes |
| `overlayStyles` | Style Object | Yes |