Input length suggester example

Default

How it looks (preview)

 

How to call this example

<input id="an-input" class="govuk-input" placeholder="Type 10 characters to reveal">
<%= render "components/input_length_suggester", {
  for_id: "an-input",
  show_from: 10,
  message: "This field should be less than 15 characters. Current characters: {count}"
} %>