Drawer
Understand the design system and contribute to it
Component preview
The live preview for UI components is handled by components/atoms/codedocs/ComponentPreview.tsx. Use it directly inside MDX whenever you want a playground-style embed. Provide componentProps to set default values and propOptions to surface toggle-able props next to the preview.
Prop reference
Auto-generated from the component source
Drawer
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof DrawerPrimitive.Root>
DrawerClose
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof DrawerPrimitive.Close>
DrawerContent
classNamechildren
React.ComponentProps<typeof DrawerPrimitive.Content>
DrawerDescription
className
React.ComponentProps<typeof DrawerPrimitive.Description>
DrawerFooter
className
React.ComponentProps<"div">
DrawerHeader
className
React.ComponentProps<"div">
DrawerOverlay
className
React.ComponentProps<typeof DrawerPrimitive.Overlay>
DrawerPortal
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof DrawerPrimitive.Portal>
DrawerTitle
className
React.ComponentProps<typeof DrawerPrimitive.Title>
DrawerTrigger
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof DrawerPrimitive.Trigger>