GC Design System Components
Home Start to use Page templates overview Basic page Components overview Breadcrumbs Button Card Checkboxes Container Date input Date modified Details Error message Error summary Fieldset File uploader Footer Grid Header Heading Icon Input Language toggle Link Notice Pagination Radios Screenreader-only Search Select Side navigation Signature Stepper Text Textarea Theme and topic menu Top navigation CSS shortcuts overview Reset styles Responsive layout State Box sizing Container sizing Display Overflow Position Visibility Font Font family Font size Font style Font weight Line height Link colour Link size Link text decoration List style Text align Text colour Text overflow Text transform Word break Margin Padding Align content Align items Align self Flex Flex direction Flex grow Flex shrink Flex wrap Gap Grid columns Grid rows Justify content Justify items Justify self Order Place content Place items Place self Background colour Border colour Border radius Border style Border width Icon names Icon size Image Cursor Pointer events Transition Styles overview Design tokens Colour tokens Spacing tokens Typography tokens Contact us Get involved Find a demo

Fieldset
<gcds-fieldset>

Also called: form group.

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

Fieldset component preview

Fieldset anatomy

  1. The fieldset legend acts as a heading to identify the grouped form components that follow. Legend text is left aligned and in sentence case (only the initial letter is capitalized).
  2. The fieldset hint text gives specific requirements for completing the grouped form components successfully.
  3. The component grouping is the group of related form components that the legend describes.
Fieldset anatomy showing the labels “legend” and ”hint text”. The component grouping contains two different form fields, each with its own label heading and hint text.

Design and accessibility for fieldsets

A fieldset combines the fieldset and legend elements to group together related form fields or components. It helps users of screen readers understand that inputs are all related to that question.

Group information

  • Group together form elements that are part of a task or are related in some way.
  • Avoid using fieldset when you have a single form field that asks for a single piece of information.

Write fieldset content to support task success

  • Write a short descriptive statement or a call to action for the legend caption to let a person know what information the fieldset group is asking.
  • Identify the subtask in the legend to help people understand the relationship between the information you're requesting and the task they’re completing.

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-06-04