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

With word count

How it looks (preview)

You can enter up to 10 words

How to call this example

<%= render "govuk_publishing_components/components/character_count", {
  textarea: {
    label: {
      text: "Can you provide more detail?"
    },
    name: "more-detail-value"
  },
  maxwords: 10
} %>