Button
<gcds-button>
-
GitHub -
Figma
Button component preview
Problems buttons solve
- Start a task or flow.
- Submit, save, or delete form data.
- Make a choice or give consent.
- Sign in to an account.
- Move forward or back in a sequence.
Related components
Choose a button type
Button type
- Delete, copy, or download information.
- Make a binary choice.
- Give consent or agreement.
Submit type
- Send a form or a request.
- Save information.
- Sign in or sign out of an account.
Reset type
- Clear data entered on a form.
Link type
- Navigate to other pages.
- Navigate to external sites. An external icon appears at the end of external links.
Choose a button role
Primary button preview
Primary button
- Critical actions in a flow or as the default button.
- Only use a single time.
Note: More than one main call to action on the same page makes it harder for a person to know what to do next.
Start button preview
Start button
Formerly called supertask button.
- The start of a task or flow.
- Bigger than other buttons, so use by itself and not beside other buttons.
- Only use once on a page.
Tip: Use either primary button or start button on a page, not both.
Secondary button preview
Secondary button uses
- Supporting actions.
- To highlight a common action but not the most important one.
- Can use more than once on a page if there are multiple secondary options.
Danger button preview
Danger button uses
- Serious actions like removing, clearing, or deleting information.
- Changes that may be difficult to reverse.
Tip: For permanent actions, ask a second time so a person explicitly agrees before accepting.