1. Collections Component Guide
  2. Form input
  3. Autofocused
Form input example

Autofocused

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/input", {
  label: {
    text: "Username"
  },
  name: "username",
  autofocus: true,
  tabindex: 0
} %>