pattern-library 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.

Open source

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.

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: .