GC Design System Components Installation Page templates Contact us Get involved Find a demo GC Design System Components

Input
<gcds-input>

Also called: text input, input field.

An input is a space to enter short-form information in response to a question or instruction.

Input component preview

Input anatomy

  1. The input label states the information a person should enter in the field. Label text is left aligned and in sentence case (only the initial letter is capitalized).
  2. The hint text communicates specific requirements for each input to support task success.
  3. The field is the container a person interacts with to provide their response.
Input anatomy showing the Input label, Hint text/ example message and dark blue outline white box for text input.

Design and accessibility for inputs

Write a short, specific, unique input label

Size inputs to fit response type

Support task success with hint text

Write error messages for required inputs

Help us improve

Have questions or a request? Give feedback on our contact form.

Something's wrong? Raise it through GitHub with an account. You'll have access to the team's direct responses, progress made on your issue, and issues raised by others.

Give feedback Report an issue on GitHub
2024-12-11