With error
How it looks (preview)
How to call this example
<%= render "govuk_publishing_components/components/character_count", {
textarea: {
label: {
text: "Can you provide more detail?"
},
name: "more-detail-error",
error_message: "Detail must be 10 characters or less",
value: "221B Baker Street
London
NW1 6XE
"
},
maxlength: 10
} %>