
Input Control Patterns in Modern Product UI
A pattern catalog for product input controls — date, file, OTP, combobox, chip, range — naming where native HTML covers it and where you still build.
TL;DR: Native HTML now covers more input controls than it did a few years ago — type="date", type="file", datalist autocomplete, type="range" — and using the native version saves keyboard handling and locale work that custom widgets re-implement. The remaining gaps are real (a combobox whose filtering and styling you control, dual-handle range, advanced date pickers), but the right starting question is whether native already covers your case before you reach for a library.
The cost of a custom input control is easy to miss. A team builds a custom date picker because the design called for a specific look, then can spend a long stretch fixing keyboard navigation, screen reader announcements, time zone handling, and locale formatting. The native control would have come with the browser's own keyboard handling and locale-based display without that work; its value carries no time zone, so time zone handling stays in application code either way. This article maps input patterns in product UI, names what native HTML now does well, and shows the narrow gaps where building or pulling in a library is the right call.
For the pattern map this sits inside, see Web UX Design Patterns: A Reference Guide; for validation timing on these inputs, see form validation UX patterns.
Native HTML covers more than it used to
Native input support has filled in over time: date and time inputs reached Baseline (supported across the core desktop and mobile browsers that Baseline tracks) in October 2021, while file and range inputs reached it earlier, in 2015 and 2017. What native covers today:
<input type="date"> is locale-aware and works with touch and keyboard input out of the box. The picker UI varies by browser and operating system, but the value semantics are stable (ISO 8601 yyyy-mm-dd).
<input type="file"> supports multiple for multi-file selection and accept for file-type filtering, and for a control the user is allowed to change, the HTML standard recommends, rather than requires, that browsers also let users change the selected files in other ways, such as by drag-and-drop. A larger styled drop zone is something you build around it (covered below). The default UI is awkward, but a styled <label> can activate the input without losing function, as long as the input is visually hidden (for example with opacity: 0) rather than hidden with display: none or visibility: hidden, which assistive technology reads as non-interactive.
<datalist> provides type-ahead autocomplete from a static list with no JavaScript, though as of Nov 2026 its dropdown of options does not appear in Firefox for Android:
<input list="cities" name="city" />
<datalist id="cities">
<option value="Seoul"></option>
<option value="Tokyo"></option>
<option value="Singapore"></option>
</datalist><input type="range"> covers single-value sliders with the browser's built-in keyboard support; test which keys each browser supports. <input type="color"> opens a native color picker. <input type="time"> stores a 24-hour HH:mm value (HH:mm:ss when it includes seconds), and its display format is likely chosen from the user's locale or by the browser. The MDN <input> reference covers each in detail.
A short coverage map for controls that product UIs use:
| Control | Native covers | Go custom when |
|---|---|---|
| Single date | `` | Range, presets, branded styling |
| Time | `` | Time zone picker, duration input |
| File upload | `` + drop zone | Chunked uploads, resume, parallel |
| Single-value slider | `` | Dual-handle range, log scale |
| Autocomplete | `` | Async fetch, rich options, filter |
| Combobox | `` + `` (browser-controlled) | Own filtering, async data, styling (use APG pattern) |
| OTP | `` + `autocomplete="one-time-code"` | Branded multi-box visual only |
The starting question for any input is what native already does. Weigh the cost of a custom replacement against the visual gain.
Combobox: where native stops
HTML does have a native combobox: a text-type <input> (type text, search, tel, url, or email, or a missing or invalid type) whose list attribute points to a <datalist> has the combobox role under ARIA in HTML, but the browser, not your code, decides how its suggestions are filtered and shown. A combobox whose filtering and suggestion list you control — a text input with a filterable, keyboard-navigable list of suggestions — is still something you build. The customizable <select> (appearance: base-select, documented on MDN; as of Nov 2026 available in Chromium-based browsers and Safari 27 but not yet in Firefox) changes how far a native select can be styled, but MDN's customizable select guide does not describe typing to filter its options.
A plain <select> cannot filter; <datalist> only suggests values, leaves filtering and display to each browser, and its option list can barely be styled. For a combobox you build, refer to the W3C's ARIA Authoring Practices Guide combobox pattern, which is implementation guidance rather than a normative standard and describes the structure: a text input with role="combobox"; a popup, which may be a listbox (with role="option" items), a grid, a tree, or a dialog; and keyboard interactions such as Down Arrow to move focus into the popup when it is available, Escape to dismiss the popup if it is visible, Enter to accept the focused option, and Up and Down Arrow to move between options in a listbox popup.
Consider a library before building from scratch. Headless component libraries (Downshift, React Aria Components, Headless UI) provide the keyboard and ARIA behavior and let you style freely. Styled libraries (MUI, Mantine) include themed comboboxes when consistency with the rest of the design system matters more than custom styling.
One pattern worth pinning down: do not auto-submit the form when a combobox option is selected. The exception is single-field search; for any other form, selection updates the value, and submission stays with the explicit submit action. Auto-submit on selection can cause accidental submissions that are hard to recover from.
Date pickers: native vs custom
<input type="date"> is the locale-aware default. Custom date pickers exist for narrow reasons.
Use the native date input when you need a single date and the picker UI is acceptable. The user gets the browser's own keyboard handling, locale-based display, and platform-native interaction patterns without extra code; test screen reader behavior in the browsers you support.
Build or use a library when you need range selection (departure and return dates as a paired widget), preset shortcuts ("Last 7 days," "This quarter"), or branded styling that the native UI cannot reach. Date range pickers and dashboard date filters fall into this group.
Always preserve a text input fallback. Even with a picker, users should be able to type a date directly — some users would rather type than click. Keep the value in ISO format yyyy-mm-dd internally and let the display localize.
OTP and verification inputs
One-time codes — SMS verification codes, emailed codes, authenticator codes — are sometimes rendered as separate <input> boxes, one per digit, for visual reasons. Treat them as one logical field with a few specific affordances.
Use autocomplete="one-time-code" on the first input. iOS reads incoming SMS messages for codes matching the pattern and surfaces the code as a keyboard suggestion above the field, which saves a switch to the messaging app. Web.dev's SMS OTP form guide covers the full pattern, including the WebOTP API, which, as of Nov 2026, works in Chromium-based browsers and Safari 27 but not in Firefox.
Allow paste of the full code into any single input box, not only the first. Users copy codes from their messaging app and paste; the form should accept the paste and distribute the digits across the boxes. The accessibility-friendly fallback is a single input with the right attributes:
<input
type="text"
inputmode="numeric"
autocomplete="one-time-code"
maxlength="6"
pattern="\d{6}"
aria-label="6-digit verification code"
/>When a design shows one box per digit, the script forwards the pasted value programmatically; the single-input version above is the screen-reader-friendly fallback and keeps working if the script that manages the boxes fails to load.
Do not force focus jumping in ways that trap screen readers. Auto-advance to the next box on keystroke is fine for sighted users; screen reader users need the option to navigate normally. Test with VoiceOver and NVDA before shipping.
File upload: drag, paste, preview
The native <input type="file"> plus a styled drop zone covers basic product upload needs without custom infrastructure; chunked, resumable, or parallel uploads are where custom work starts.
A drop zone overlay listens for dragenter and dragover (calling preventDefault() on both so that the drop is allowed) and drop events on a wrapper element and forwards the dropped files into the input's files collection. The user sees a styled area; the input handles the upload pipeline. Where users cannot drag files, activating the control (for example, a tap on a touch device) still opens the file picker.
Accept paste (Ctrl+V or Cmd+V) for screenshots: users on macOS can copy a screenshot to the clipboard with Control+Shift+Cmd+4 and want to paste it directly into a form field. A paste event listener on the container with handling for event.clipboardData.files covers it.
Show preview thumbnails for images, file name and size for other types. The preview tells the user the upload actually captured what they intended; the lack of a preview makes them re-upload to confirm.
Validate type and size client-side AND server-side. Client validation gives fast feedback; server validation is the only validation that matters for security. Both are required.
Chip and tag input
Chip input — typing a value, pressing Enter to create a chip, deleting with Backspace — shows up in tag pickers, recipient lists, and filter UIs.
Enter is a safer separator than comma or space. Comma works in English but breaks in locales where comma is a decimal separator or sentence punctuation. Space breaks for any tag containing a space. Enter avoids those punctuation problems, but Enter keydown events can also fire while an input method editor (IME) is composing text — the UI Events specification marks them with isComposing — so do not create a chip from those events.
Backspace from an empty input deletes the last chip. Pressing Backspace once shows the chip in a "selected" state; pressing it again deletes. This protects against accidental loss.
Show a max-chip limit visually if one exists. "Up to 5 tags" in helper text prevents the silent failure where a sixth tag is silently rejected.
Support paste of existing lists. A user pasting a list — from a spreadsheet, an email, another product — expects the chips to materialize from the paste. Newline and tab are the safe separators to split on, since spreadsheet cells and lines arrive that way. Split on comma or semicolon only where the values cannot contain them, for the same locale reason as above, and create chips for each token.
The chip delete button needs a target of at least 24 by 24 CSS pixels to meet WCAG 2.2 2.5.8 Target Size (Minimum) at level AA, unless one of the criterion's exceptions applies. The exceptions are spacing (a 24 CSS pixel diameter circle centered on the bounding box of each undersized target does not intersect another target or another undersized target's circle), an equivalent control on the same page that meets the criterion, an inline target (in a sentence, or sized by the line height of surrounding text), a size set by the browser and not modified by the author, and a presentation that is essential or legally required for the information conveyed. 44 by 44 is the stricter AAA target of 2.5.5 Target Size (Enhanced). Both can be larger than the visual ✕ icon. Pad the hit area without resizing the icon.
Range and slider
<input type="range"> covers single-value sliders. It has the browser's built-in keyboard support, it is screen reader announced as a slider with current value, and it can be styled with non-standard, vendor-prefixed pseudo-elements (::-webkit-slider-thumb, ::-moz-range-thumb), written separately for each engine.
Always show the current value as text alongside the slider. The visual position is approximate; the text value is exact. For a price slider, show the numeric value next to the handle; for a brightness slider, show the percentage.
Dual-handle range sliders — price ranges, date ranges, age filters — are the gap. No native HTML element gives two-handle range; you build it or pull in a library. The implementation needs two synchronized inputs, keyboard handling on both handles, and screen reader announcements that distinguish "minimum" from "maximum."
Aim for a 44 by 44 CSS pixel hit area on touch handles, the WCAG 2.5.5 AAA target; the AA minimum under 2.5.8 is 24 by 24 unless one of its exceptions applies, such as enough spacing between smaller targets. The visible handle can be smaller; expand the hit area with padding or a transparent overlay so the visual stays calm.
Phase 1 deliverables and acceptance criteria
A short audit for product input controls in an existing form.
- List every custom input control in your product and check whether native HTML would now cover it.
- Replace custom date pickers with
<input type="date">where range selection is not needed. - Add
autocomplete="one-time-code"on every OTP field and verify paste of the full code works in any box. - Confirm chip delete buttons and slider handles meet WCAG 2.5.8 (AA) — 24 by 24 CSS pixels or one of its exceptions, such as spacing — and the 2.5.5 44-by-44 target (AAA) where you can.
- Review custom comboboxes against the ARIA APG combobox pattern —
role="combobox", a popup such as a listbox, keyboard navigation.
The native input set has been catching up, so custom controls built years ago may no longer be needed. The 2026 default is to start native and reach for libraries only where the gap is real. Neighboring practice: form validation UX patterns for timing on these inputs, multi-step and wizard form design for the forms these inputs live inside, and form microcopy and error messages for the labels and helper text that make them usable.