pattern-library 1 linked patterns checked

GOV.UK Design System: Text input with prefix and suffix

Documents prefix and suffix options for text input, including currency examples, label and hint requirements, affixes positioned outside the input, screen reader cautions, and validation that should allow users who type the prefix or suffix into the field.

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
Input prefix/suffix Choose input prefix/suffix when a common fixed symbol, unit, abbreviation, domain, or icon clarifies what the text input accepts. The affix is visible near the input but not editable as part of the field value. GOV.UK supports prefix and suffix placement outside the input, label and hint requirements, screen reader cautions, and validation tolerance for typed affixes.

Comparisons supported by this source

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