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

Fieldset
<gcds-fieldset>

Also called: form field.

A fieldset is a group of multiple form components or elements.

Fieldset component preview

Fieldset anatomy

A fieldset combines the <fieldset> and <legend> elements to accessibly group together related form fields or components – without solely relying on visual layout.

  1. The fieldset legend provides the caption for the contents of the group of form components. The legend can be a short descriptive statement or a call to action phrase. Legend text is left aligned and in sentence case (only the initial letter is capitalized).
  2. The fieldset hint text communicates specific requirements for the fieldset's content to support task success.
  3. The component grouping is made up of each component within the fieldset.
Fieldset legend anatomy showing the labels Legend, Hint text and component grouping. Hint text shows Fieldset legend. Component grouping has Input label underneath explain to give a Hint/Example message. Below is a dark blue boxed with six zeros to indicate where the number label will be put and the format. There is a Input Label with Hint/ Example message with a dark blue box selecting box with Select Option and arrow pointing down showing selection option.

Design and accessibility for fieldsets

Group information accessibly

Write fieldset content to support task success

Clarify the question or instruction for radios and checkboxes

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
2025-02-24