1. Collections Component Guide
  2. Form input
  3. Specific input type
Form input example

Specific input type

By default the input will be type=”text”. This parameter accepts an alternative, e.g. “search” or “email”. No validation is done on this input.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/input", {
  label: {
    text: "What is your email address?"
  },
  name: "address",
  type: "email"
} %>