<div class="ilui-example">
<button class="ilui-button" type="button" data-ilui-dialog-open aria-haspopup="dialog"
aria-controls="ilui-review-drawer-dialog">Open review details</button>
Setup
Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.
Start-side drawer
Attach a workspace panel to the inline start edge.
<div class="ilui-example">
<button class="ilui-button" type="button" data-ilui-dialog-open aria-haspopup="dialog"
aria-controls="ilui-start-drawer-dialog">Open workspace panel</button>
Bottom drawer
Bring a short panel up from the bottom of the viewport.
<div class="ilui-example">
<button class="ilui-button" type="button" data-ilui-dialog-open aria-haspopup="dialog"
aria-controls="ilui-bottom-drawer-dialog">Open share options</button>
Usage
| Focus | Drawer uses a native modal. Escape closes it and returns focus to the opener. |
|---|
| Placement | Use the inline start, inline end, or bottom variant. All placements share Inlay’s overlay motion. |
|---|
| Inset | Set --ilui-drawer-inset to change the viewport gap. The default is 12 px. |
|---|