Collect free-form text
Text inputs are the default choice for any information that users need to type out — names, references, search terms, addresses.
Text inputs allow your users to enter letters, numbers and symbols on a single line.
Text inputs are the default choice for any information that users need to type out — names, references, search terms, addresses.
Error, warning, and success states are part of the component — validation feedback integrates naturally without custom styling.
The label and helper text slots keep form questions and guidance close to their field, reducing the cognitive load on users.
Input field
Icon (optional)
Trailing icon (optional)
Action (optional)
The text input supports optional leading and trailing icons for visual context or inline actions.
Renders a text input with a leading icon. Use a recognisable icon to hint at the expected input type — such as a search icon for a search field.
Component tokens are specific to each component. Use the table title as the prefix: gap-sm under sgds/input means sgds/input/gap-sm.
sgds/gap/smsgds/gap/xssgds/form/border-radius/mdsgds/form/color/subtlesgds/form/outline/focusUsers should understand what to enter before they start typing.
Placeholder-only instructions disappear and make the field harder to complete accurately.
TabShift+TabText keysShare 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.