fndn/ui

Components

Drawer

Beta

A panel that slides in from an edge of the screen and can be swiped away.

Details

A sheet that slides in from an edge over a dimmed page: from the bottom on a phone (with a grabber), from the end or the start for a side panel. It follows the finger: drag it towards its edge to dismiss it, release short of a quarter and it settles back. Otherwise it is the Dialog: title, description, body and actions, focus trapped inside, Escape closes, focus returns to the trigger, the page behind is inert and does not scroll. Behaviour comes from the Zag drawer machine through Ark UI.

Behaviour from Ark UI, the drawer machine of Zag.