Specific input type
By default the input will be type="text"
. This parameter accepts an alternative, e.g. search
or email
. spellcheck="false"
is the default this can be changed by passing a true
value. Consider adding autocomplete
. 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"
} %>