createDrawerHostStore({ open?, drawerId? }) returns { getState, subscribe, open(id), close }. close leaves the id set so the panel can finish closing. open(id) replaces the drawer that is open.
Migration notes
Old
New
DrawerPortal
Do not mount a portal node. Drawer mounts through Portal into the trigger's document.
useDrawerStore / setDrawerOpen
open and onOpenChange, or store.open / store.close.
AppDrawer / useAppDrawerStore
DrawerHost and the shell's id.
AnchorPosition.Right / Left
DrawerEdge.InlineEnd / InlineStart.
width, minWidth, maxWidth
DrawerSize.Medium, Small, Large.
DrawerNav children
nav on the drawer entry.
closeTitle
closeLabel.
onClose
onOpenChange when open is false.
The shell's drawer search param stays shell-owned. This host does not read it.