Dialog
Display a fixed overlay dialog at any side of the screen
Import
Source
Docs
Package
Usage
Dialog
is a simplified version of Modal component.
It does not include most of accessibility and usability Modal features:
- Focus trap is not available
- Does not close on click outside
- Does not have overlay
Use Dialog
to attract attention with not important information or action,
for example, you can create an email subscription form:
Change position
Dialog
is rendered in Portal and has fixed position, set position
prop to control dialog's position:
Accessibility
Dialog
is not accessible and most likely will not be announced by screen reader,
make sure you do not put any important information. In most cases it would be better
to select Modal, Drawer or Notifications.