| UI or UX | UI + UX - Single-value bounded range control | UI + UX - Single-line freeform data-entry control | UI + UX - Single-choice dropdown control | UI + UX - Immediate binary setting control |
| UI guidance | Render one thumb on a track with a persistent label, visible current value, unit, min and max labels, focus state, and disabled or read-only state. | Render a persistent label, appropriately sized single-line input, optional hint, visible focus state, and nearby error text that is programmatically associated with the field. | Render a persistent label, hint text, native closed value, finite option list, selected option, and validation state. | Render one switch with a stable visible label, clear on/off state, visible focus, accessible state, and optional state text when the effect is not obvious. |
| UX guidance | Help users adjust one bounded value quickly when the relative position or intensity matters. | Use text input for short freeform answers that users can type or paste and that cannot be accurately represented as a fixed option choice. | Help users choose one value from a moderate known list without showing every option permanently. | Let users change one reversible setting immediately and understand the applied effect. |
| Good UI | A Brightness slider shows 55%, dim and bright endpoint labels, visible focus, and a paired number input. | A reference-name field has a visible label, hint, medium width, focus ring, and error message beneath the hint when submitted empty. | Persistent label, hint text, visible selected value, readable options, and clear required validation state. | A notifications switch with a stable Notifications label, On or Off state text, large hit target, visible focus, and immediate applied effect. |
| Bad UI | An unlabeled rail has no visible value, min, max, or unit. | The only instruction is placeholder text that disappears when the user starts typing. | Placeholder as the only label. | A red switch labelled Delete account that behaves like an instant destructive command. |
| Good UX | A user adjusts brightness with arrow keys, types 65 in the number field, sees both controls synchronize, and gets a warning near battery-heavy values. | A user types or pastes a short reference, submits it, and the interface confirms the stored value without changing their wording. | Users can open, scan, choose one value, and review the selected value after close. | Turning the switch on immediately enables the setting and announces the applied effect. |
| Bad UX | A user tries to enter $812.37 with a huge slider and cannot land on the exact cents. | Validation fires on the first focus event and blocks typing before the user has had a chance to answer. | Hiding two obvious critical choices in a dropdown. | A switch appears to change but requires a hidden Save button before anything happens. |
| Best fit | Users adjust one bounded value such as brightness, volume, opacity, zoom, intensity, cost tolerance, or preference strength. | The answer is short and user-authored. | The user chooses one option from a moderate known list. | A single setting, feature, preference, or hardware-like control has two clear states. |
| Avoid when | Users need to enter an exact, arbitrary, or high-stakes number. | The answer is a paragraph, comment, address block, or explanation requiring multiple lines. | The option set is short and comparison matters. | The action is destructive, one-time, legal, financial, or needs confirmation. |
| Required state | Initial value state with visible label, min, max, current value, and unit. | Empty untouched state with persistent label and optional hint. | Closed state with empty option or current selected value. | Off state. |
| Accessibility burden | Prefer native range input where possible. | Associate every text input with a visible label or equivalent accessible name that matches the visible question. | Prefer native semantics or implement equivalent name, role, state, and keyboard behavior. | Use role switch with aria-checked or a native checkbox implementation that exposes the checked state. |
| Common misuse | Using a slider for a binary on/off choice. | Using placeholder text as the only label or instruction. | Custom select with no keyboard support or hidden selected state. | Using a switch to delete, publish, pay, submit, or trigger another one-time command. |