Drawer
UI SDK Drawer parts: a modal sheet from any edge (bottom or side), draggable, with focus trap, Escape and focus restore.
Example
drawer-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
API reference
DrawerTrigger
Takes every prop of UI SDK DrawerTrigger except aria-label, ButtonLookProps.
DrawerBackdrop
DrawerContent
DrawerHandle
DrawerHeader
Takes <div> attributes and render.
DrawerFooter
Takes <div> attributes and render.
DrawerTitle
DrawerDescription
DrawerClose
Takes every prop of UI SDK DrawerClose except aria-label, ButtonLookProps.
Other exports
DrawercreateDrawerControllerAccessibility
- A modal sheet from any edge, with the dialog's focus rules; drag to dismiss on touch.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.