1. Component Guide
  2. Action link
  3. With js classes
Action link example

With js classes

Use js- prefixed classes only as interaction hooks – to query and operate on elements via JavaScript. Classes are added to the link itself.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/action_link", {
  text: "Coronavirus (COVID-19)",
  href: "/page",
  classes: "js-hook"
} %>