DocsPricingMy accountBuy Now
UI COMPONENTS / Drawer

Drawer. slide it in.

Off-canvas panels for mobile menus, carts, filters, and command surfaces.

Root + 5 atoms / Accessible / Composable

Drawer · runtimeATOMIC

Looping preview · edge slide + focus trap

Why it's good

Behavior, handled.

Drawer owns the parts that are tedious and easy to get wrong – so you can focus on the layout and the brand.

  • Left, right, top, or bottom placement
  • Focus trap and scroll lock
  • Remote triggers by shared ID
  • Works for menus and carts
Compositions

Drawer becomes patterns.

Different structures made from the same atoms.

Bottom filters drawerATOMIC
  • Map Page
    • Drawer Triggerbtn
      • Drawerroot
        • Drawer Titleatom
          • Drawer Closebtn
            • Default Slotslot

          Bottom filters drawer

          Test Map uses Drawer Trigger to open Drawer, then composes Drawer Title and Drawer Close inside the default slot.

          Test Map
          Edge navigationATOMIC
          • Mobile Header
            • Drawer Triggerbtn
              • Drawerroot
                • Drawer Titleatom
                  • Drawer Descriptionatom
                    • Default Slotslot
                      • Drawer Closebtn

                    Edge navigation

                    A navigation drawer uses the same remote trigger model, with Drawer Description available for extra context.

                    Component model
                    Cart drawerATOMIC
                    • Store Header
                      • Drawer Triggerbtn
                        • Drawerroot
                          • Drawer Titleatom
                            • Default Slotslot
                              • Drawer Closebtn

                            Cart drawer

                            Commerce layouts can place cart markup in the default slot without adding extra drawer-family atoms.

                            Component model
                            Ready?

                            Stop rebuilding Drawer.