Use name to specify the name of the button when submitting form data. This attribute helps identify which button triggered a form submission, especially when multiple buttons exist in a form.
Use value to define the data sent to the server when the button submits a form. The button only sends this value if it has a name attribute and if it triggered the submission. If multiple submit buttons exist, only the clicked button sends its value.
Use download to make the button download the file referenced by the href attribute, rather than navigate to it. This attribute is only supported when the button type is set to link.
Use rel to specify the relationship between the current document and the linked document. Use it for security and privacy purposes, especially when links open in a new tab or window. This attribute is only supported when the button type is set to link.
Use target to specify where the linked resource opens: in the same browsing context, or in a new tab or window. This attribute is only supported when the button type is set to link.
The default slot allows you to inject custom content into the component’s primary content area, and named slots, into specific areas.
default
Use the default slot to add the button or link label text.
<gcds-button>Submit</gcds-button>
Code builder Generate an instance of the component you need by selecting its code properties.
Explore by choosing different code values to generate the instance you want.
Get the code and pull it into your environment.
Add any copy you need to the component (like text for a label).
Note: The code builder uses English for all code elements, which follows standard practice. Start 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 2026-07-08