Drawer

Drawers slide in from a container to expose additional options and information.

DesignUsageAccessibilityUpdates

Purpose

Expand context on demand

Drawers reveal additional information or actions in a panel anchored to the edge of the screen, without replacing the current view.

Keep the page visible

Unlike a modal, a drawer sits alongside the main content — users can reference what's behind it while working in the panel.

Useful for secondary tasks

Use drawers for settings, filters, or detail panels where the content supports — but doesn't replace — what's already on screen.

Anatomy

Edit details Review the information before saving.

Drawers are useful for secondary tasks that need more space than a popover.

Cancel Save
1

Panel

2

Title (slot)

3

Description (slot)

4

Content

5

Footer (optional)

Configuration

Contained

Drawers slide in from the edge of their container to reveal secondary content without replacing the main view.

Edit details Review the information before saving.

Drawers are useful for secondary tasks that need more space than a popover.

Cancel Save

Renders a panel anchored to the container edge. Use for secondary tasks — such as reviewing details, editing settings, or applying filters — that support the main page without replacing it.

Playground

BETA
Edit details Review the information before saving.

Drawers are useful for secondary tasks that need more space than a popover.

Cancel Save

Structure

Edit details Review the information before saving.

Drawers are useful for secondary tasks that need more space than a popover.

Cancel Save

Component tokens

Component tokens are specific to each component. Use the table title as the prefix: padding-2-xl under sgds/btn means sgds/btn/padding-2-xl.

sgds/drawer
CategoryComponent tokenSemantic tokenValuePaddingpadding-2-xlsgds/padding/2-xl32pxpadding-lgsgds/padding/lg20pxpadding-nonesgds/padding/noneGapgap-xssgds/gap/xs8pxTypographyfont-size-24sgds/font-size/24Colourcolor-defaultsgds/color-default#1A1A1Acolor-subtlesgds/color-subtle#525252surface-defaultsgds/surface-default#FFFFFFbg-overlaysgds/bg-overlaySizedimension-512sgds/dimension/512dimension-768sgds/dimension/768dimension-1024sgds/dimension/1024

Usage

When to use

  • Use drawer for secondary tasks that need more space but should not interrupt the main page context.
  • Use it when users need to review or edit details without leaving the current screen.

When not to use

  • Do not use drawer for the primary task on the page.
  • Do not overload the drawer with multiple unrelated tasks.

Best practices

Edit details Review the information before saving.

Drawers are useful for secondary tasks that need more space than a popover.

Cancel Save
Keep the drawer focused

A drawer works best when it supports one related task and a clear next step.

Task one Task two and another decision in the same drawer.

Long content and multiple unrelated tasks make the drawer harder to complete.

Continue Open something else
Do not turn the drawer into a whole page

Too many unrelated tasks or messages make the drawer harder to complete and dismiss.

Accessibility considerations

Built-in accessibility

  • Drawers expose their panel as a dialog with `aria-modal`.
  • The component sets initial focus when it opens and restores focus to the trigger when it closes.

Labels and content

  • Use a title that describes the drawer task.
  • Keep drawer content focused on one task or supporting flow.

Focus and interaction

  • Place the primary action after the content it acts on.
  • Avoid opening a drawer from another temporary overlay unless the flow requires it.

Keyboard interaction

KeyInteractionTabMoves focus from the drawer content to the next focusable element.Shift+TabMoves focus to the previous interactive element.EscCloses the open drawer when supported by the component.

Updates

DateVersionDescriptionLoading updates…

Roadmap

Planned itemStatusTargetFuture enhancements for drawerPlannedTBD

Feedback

Have suggestions or feedback?

Share them with us on Slack → #design-system-feedback

Bug Reports

Found a bug or issue?

Report it on GitHub Issues → sgds/components/drawer

Singapore Government Design System

The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.