pattern-library checked
GOV.UK Design System: Character count
Documents character count for limited textarea content with max characters or max words, thresholded count display, assistive-technology messages, static no-JavaScript fallback text, error handling when over the limit, and research-backed advice to test without the component before adding it.
Pattern Decisions This Source Supports
| Pattern | Supported decision | Required contract | Claim note |
|---|---|---|---|
| Character count | Choose character count when the limit is real, useful to users, and enforceable in the same unit displayed by the interface. | The field accepts typing and paste normally; the counter observes length rather than blocking editing prematurely. | GOV.UK character count guidance supports max characters, max words, thresholds, assistive messages, fallback text, and over-limit errors. |
Evidence Role
This source is treated as pattern-library evidence. Use it to validate the decision rules above, not as a visual style reference.
Publisher: Government Digital Service. Last checked: .