Search example

With corrections disabled

Allows disabling mobile browser autocorrect features (autocorrect and autocapitalize attributes) on the input field.

Mobile browser autocorrect and text substitution features can conflict with the built in autocorrect features of some search engines, and will frequently correct domain-specific search terms to something that is not what the user intended (for example, correcting “SORN” to “sworn” or “HMRC” to “Hercules”). Capitalisation can also be significant for some search engines such as that currently used by Search API v2.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/search", {
  disable_corrections: true
} %>