Skip to content

Drawer

A bottom sheet that slides up from the bottom of the screen. Optimised for mobile — can be dragged to dismiss. Built on Vaul.

$cookest-ui add drawer

Basic

A simple bottom drawer triggered by a button.

Shopping Cart

A mobile-optimised cart drawer for ingredient orders.

PropTypeDefaultDescription
openbooleanControlled open state.
onOpenChange(open: boolean) => voidCallback for open state changes.
DrawerTriggerReactNodeThe element that opens the drawer.
DrawerCloseReactNodeThe element that closes the drawer.
shouldScaleBackgroundbooleantrueScales the page background when the drawer is open (Vaul feature).