1. Component Guide
  2. Form character count
  3. With hint
Form character count example

With hint

How it looks (preview)

Please include as much information as possible.
You can enter up to 10 characters

How to call this example

<%= render "govuk_publishing_components/components/character_count", {
  textarea: {
    label: {
      text: "Can you provide more detail?"
    },
    name: "with-hint",
    hint: "Please include as much information as possible."
  },
  maxlength: 10
} %>