算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
recognition-pickers-and-palettes【设计与创意】Use this skill when designing pickers, dropdowns, comboboxes, autocompletes, command palettes, or any UI that lets the user select from a known set. Trigger when picking between a free-text field and a select; when designing a command palette; when reviewing why users keep typing wrong values into autocomplete inputs. Sub-aspect of `recognition-over-…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
recognition-over-recall; read that first.'Selection UI is the most direct application of recognition-over-recall. Showing the user a list of valid options — visually scannable or filterable — beats requiring them to type from memory.
Different selection patterns suit different option counts:
| Option count | Pattern | Notes |
|---|---|---|
| 2 | Toggle / switch | Visual either-or |
| 3–5 | Radio group / segmented | All options visible |
| 5–8 | Select dropdown | Visible on click |
| 8–20 | Grouped select | Categorical chunking helps |
| 20+ | Combobox / typeahead | Filter-as-you-type |
| 100+ | Search-first picker | Search-driven; recents augment |
Going lighter than the count permits forces unnecessary recall. Going heavier adds complexity without benefit.
<combobox label="Country">
<input placeholder="Search countries..." />
<listbox>
<option>United States</option>
<option>United Kingdom</option>
<!-- filtered as user types -->
</listbox>
</combobox>
The user types partial recall; the system filters; the user recognizes the right option. Tolerates typos with fuzzy matching.
A palette that lists actions, navigation destinations, and search:
[ ⌘K opens palette ]
Search:
> Recents
Create invoice
Open settings
> Actions
Search projects
Invite teammate
> Navigation
Go to Dashboard
Go to Projects
Categorical groups + search + recents = recognition for nearly any command.
<combobox label="Assignee">
<listbox>
<group label="Recent">
<option>Maria Mendoza</option>
<option>Lin Chen</option>
</group>
<group label="All members">
<!-- alphabetical -->
</group>
</listbox>
</combobox>
Repeat-task speed via recents.
For inputs where the system can predict likely values:
<input
name="email"
type="email"
autocomplete="email"
list="email-suggestions"
/>
<datalist id="email-suggestions">
<option value="user@example.com" />
<option value="user@gmail.com" />
</datalist>
The browser surfaces matching options; the user recognizes and selects.
For colors, dates, locations, etc., visual pickers are more recognition-friendly than coded inputs:
The WAI-ARIA Combobox pattern documents the keyboard interaction:
Tab enters the input.Reach for an accessible combobox library (Radix, React Aria, Headless UI) rather than rolling your own — focus management and ARIA are easy to get wrong.
recognition-over-recall (parent).recognition-recents-and-suggestions — accelerating repeat tasks.hicks-law-menus — picker design under decision-time constraints.accessibility-operable — comboboxes are notorious accessibility-test surfaces.