Drawer
Drawer is a temporary, focused region that supports a small, self-contained action, such as choosing an option, confirming a decision, or entering a few fields, without leaving the current screen. It's designed to briefly pause the primary flow, allow the completion of tasks and then return directly to the prior context.
Also known as: Flyout, Sheet
| Salt package | @salt-ds/core |
|---|---|
| Available since | 1.19.0 |
- Users can resize a resizable drawer by dragging its inner edge.
- Users can also resize it without dragging: they click the edge, then click the new position for it. A guide line shows the new position until the second click.
- When the resize handle has focus, users can resize the drawer with the keyboard.
| Key | Function |
|---|---|
| Enter / Space |
|
| Tab |
|
| Shift + Tab |
|
| Escape |
|
When the resize handle of a resizable drawer has focus:
| Key | Function |
|---|---|
| Left arrow / Right arrow |
|
| Up arrow / Down arrow |
|
| Home |
|
| End |
|
| Enter |
|