1. Component Guide
  2. Search
  3. Apply custom styling to the label and set search value
Search example

Apply custom styling to the label and set search value

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/search", {
  inline_label: false,
  label_text: sanitize("<h1>Search GOV.UK</h1>"),
  value: "driving licence"
} %>