1. Component Guide
  2. Button
  3. With type
Button example

With type

Buttons default to having a type of submit, but in some cases it may be desirable to have a different type.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/button", {
  text: "Button type button",
  type: "button"
} %>