Form character count example

With threshold

How it looks (preview)

You can enter up to 20 characters

How to call this example

<%= render "govuk_publishing_components/components/character_count", {
  textarea: {
    label: {
      text: "Can you provide more detail?"
    },
    name: "more-detail-with-threshold"
  },
  threshold: 75,
  maxlength: 20
} %>