1. Component Guide
  2. Form input
  3. With an identifier
Form input example

With an identifier

Give the input a specific ID.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/input", {
  label: {
    text: "Has an id"
  },
  name: "hasid",
  id: "hasid"
} %>