My learning 0 of 20 lessons complete
Start lesson 1 →
pattern-library 1 linked patterns 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.

Read with a purpose

What this source can teach

Use this source to compare a documented solution with the task and states in your own product.

  1. Start with the original. Open the source and find the guidance or example relevant to your task.
  2. Trace the connection. Use the claim notes below to see how this site applies the source to specific patterns.
  3. Check the setting. Compare the source's platform, people, and constraints with your own decision.

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. Its value comes from the specific claims and setting described above.

Publisher: Government Digital Service. Last checked: .

Saved items