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

Search
<gcds-search>

Also called: search bar, site search box, search field.

Search is a space for entering keywords to find relevant information.

  • Required on Canada.ca

Search component preview

Search anatomy

  1. The input field is a space to enter search keywords.
  2. The placeholder text is a prompt visible before a person types. It identifies the search area.
  3. The button, labelled with a magnifying glass, initiates a search.
A search box with the words “Search Canada.ca” inside next to a magnifying glass button immediately on the right. Each individual element of the component has a number pointing to it.

Check search requirements

Here’s what’s required for search on GC sites.

  • Search is required in the header on Canada.ca standard and campaign pages.
  • It's optional for other Canada.ca pages and GC sites.
Always include the search in the header of a standard or campaign page and maintain the default settings.
  • Use default GC Search indexing.
  • Set indexing across Canada.ca content or at an institution or program level.
  • For a Canada.ca site-wide search, maintain the default search prompt text “Search Canada.ca” in English and “Rechercher dans Canada.ca” in French.
  • For an institution, program, or product specific search, use the following search prompt text:
    • “Search [institution/program/product]” in English
    • Rechercher dans [institution/programme/produit]” in French
Note: As an exception, pages solely intended for a public service audience may apply a customized search indexation in particular contexts.
Opt to add a search for other datasets within the content area of the page.
  • If a secondary search is needed with other datasets, place that search within the content area of the page.
  • Clearly identify the search area, so a person searching understands the constraints ahead of time.

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-07-17