The title prop provides an accessible name announced to the user when the Drawer is opened. Optionally, a description can be provided and will be announced by a screen reader as well as visually forming part of the header block.
Open in Playroom and enable your screen reader to preview the announcements.
Recommended for providing a focused or drill-down view into a subset of the page content, e.g. viewing more details about a list item, or editing a piece of data/information. For a smaller amount content or to prompt the user, consider using a Dialog instead.
The onClose function is called when the user either click the close button inside the Drawer, or clicks on the backdrop outside the Drawer. The aria-label for the close button can be customised by providing a closeLabel prop.