Pick dates with precision
The calendar view helps users select dates in context — seeing the day of the week and surrounding dates reduces scheduling mistakes.
The datepicker component helps users pick dates from a calendar or type them directly into the input.
The calendar view helps users select dates in context — seeing the day of the week and surrounding dates reduces scheduling mistakes.
Users can either type a date directly into the input or use the calendar interface, accommodating both keyboard-first and pointer users.
A shared date picker ensures all products in your service collect and display dates in the same format, reducing ambiguity.
Input field
Calendar trigger
Calendar panel
The datepicker combines a text input with a calendar panel for structured date selection.
Renders a date input with a calendar picker. Use when users need to select a specific date and a calendar view helps them pick the right one in context.
Component tokens are specific to each component. Use the table title as the prefix: font-size-14 under sgds/datepicker means sgds/datepicker/font-size-14.
sgds/font-size/14sgds/font-weight/semiboldsgds/line-height/20sgds/line-height/24sgds/bg-translucent-subtlesgds/primary/surface/translucentsgds/form/border-radius/mdsgds/form/border-radius/smsgds/form/color/defaultsgds/form/color/fixed-lightsgds/form/color/inversesgds/form/gap/mdsgds/form/gap/smsgds/form/height/lgsgds/form/outline/focussgds/form/padding/xsgds/form/padding/yA clear prompt and a single expected date help users complete the field confidently.
Users should not have to guess the expected input from placeholder text alone.
TabShift+Tab↓ Downor↑ UpEnterEscShare them with us on
Report it on GitHub
The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.