Both are modal side panels and both sit on Radix Dialog, so focus handling and Escape match. The source differs in three ways:
Engine. The Drawer wraps Vaul, which adds drag gestures, snap points and background scaling on top of Radix Dialog. The Sheet uses Radix Dialog directly with CSS slide animations.
Gestures. The wrapper sets handleOnly and exports no Drawer.Handle, so nothing can start a swipe. In practice the Drawer closes like a Sheet does. shouldScaleBackground defaults to true, but only an element with data-vaul-drawer-wrapper scales, and no app page has one.
Layout. The Drawer is a fixed w-96 panel on the right with overflow-y-auto, no padding on the content and no close button. The Sheet has side, 24px of padding, a corner × and no scrolling.
Anatomy
Part
Role
Drawer
Holds the open state and the Vaul options.
DrawerTrigger
The element that opens it. Use asChild with a Button.
DrawerContent
The panel and its backdrop.
DrawerHeader
Groups the title and the description. Has 20px of padding.
DrawerTitle
Names the panel. Required for assistive technology.
DrawerDescription
One sentence of context.
DrawerFooter
The actions, pushed to the bottom with mt-auto. Has 16px of padding.
DrawerClose
Closes the drawer. Use asChild with a Button. The panel has no built-in ×.
Content between the header and the footer needs its own padding (px-5 matches the header).
Examples
Details with a close action
Details with a main action
Put the main action first and DrawerClose last: the footer is a column.
Content
Title the panel with the object: “Movimentação de 12/03/2025”, “Revisar contestação”.
Use the description for the identifier the user searches by, such as the process number.
Always provide a DrawerClose button. There is no corner ×.
Accessibility
Vaul is built on Radix Dialog: the panel has role="dialog" and is labelled by DrawerTitle and described by DrawerDescription. Always include both.
Focus moves into the panel on open, stays inside and returns to the trigger on close. Escape and a click on the backdrop close it. The page behind is inert.
The wrapper turns on handleOnly and renders no handle, so there is no gesture to learn and no keyboard difference between pointer and keyboard users.
Without a corner ×, keyboard and screen reader users depend on DrawerClose and Escape. Always include a close button in the footer.