Open a side panel
Drawers reveal extra content or controls from the edge of the screen.
Drawers slide in from a container to expose additional options and information.
Drawers reveal extra content or controls from the edge of the screen.
Use drawers for content that relates to the current page.
Drawers work well for filters, settings, and supporting details.
Container
Title (optional)
Description (optional)
Slot (optional)
Scrim (optional)
Close button (optional)
Scrollbar (situational)
Drawers slide in from any edge of the screen. Choose the edge that best matches the relationship between the drawer content and the page beneath it.
Default placement, suitable for inspector and detail panels.
Choose a size that matches how much content the drawer holds.
Default compact size for short content.
Contained drawers stay within their parent surface instead of covering the full viewport.
Use the default viewport drawer for page-level tasks.
Use the footer slot for the primary actions that complete or dismiss the drawer task.
Use a footer when the drawer contains a task that needs actions.
Each row is a colour, spacing, or size value the component uses, and the right-most column tells you where in the component you'll see it.
sgds-padding-2-xl32pxsgds-padding-2-xl32pxsgds-padding-lg20pxsgds-padding-none—sgds-gap-xs8pxsgds-margin-none—sgds-font-size-24—sgds-dimension-512—sgds-dimension-768—sgds-dimension-1024—sgds-z-index-modal—Adjust filters and apply them when you are done.
Drawers work best for filters, settings, or detail panels. Users keep the page in view while they work.
Are you sure you want to permanently delete your account?
Decisions that block progress or are irreversible belong in a modal, where users must respond first.
Reviewing details on the right keeps the booking list visible.
Use end for detail panels, start for navigation, and bottom for mobile sheets so placement matches purpose.
Opening a second drawer from inside another hides the first context. Resolve the current one first.
Make changes to the form below.
Include a footer action such as Save or Cancel, paired with the built-in close, so users have an obvious exit.
This long task includes uploads, multiple steps, and a review screen.
If the content is a full task or page on its own, send users to a dedicated page instead of a drawer.
aria-modal.TabShift+TabEscShare them with us on Slack → #ask-sgds-v3
Report it on GitHub Issues → sgds/components/drawer
The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.