1. Component Guide
  2. Form textarea
  3. With maxlength
Form textarea example

With maxlength

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/textarea", {
  label: {
    text: "A textarea that doesn't allow many characters"
  },
  name: "maxlength",
  value: "You can't type more",
  maxlength: 19
} %>