Skip to content
IndexRequest a UIAboutContact

Model Picker with Descriptions

A dropdown for choosing an AI model where each option explains speed, depth and cost, with full keyboard support.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Clean UI mockup of an open model picker dropdown under a button labelled Balanced with a small chevron, a list of three options Fast, Balanced with a check mark and highlighted background, and Deep, each with a one-line description and two small meters labelled Speed and Depth drawn as dots, light theme, rounded menu with thin border and soft shadow, flat modern style. Negative: heavy shadows, clutter, text errors, device frames. Reduced motion: static design.

About this pattern

Definition

People pick a model by what it is good for, not by name. A picker that shows a one-line description and simple speed and depth meters lets them choose without reading documentation. It is a listbox opened from a button, with arrow keys, Enter to pick and Escape to close.

Purpose & UX principles

  • Use a button with aria-haspopup=listbox and aria-expanded; the options are role=option inside a role=listbox.
  • Show name, one short sentence and small meters for speed and depth.
  • Mark the current choice with a check and aria-selected.
  • Close on Escape and outside click and return focus to the button.

Interaction states

  • Open the picker with click, Enter, Space or Arrow Down.

Motion specification

  • The menu fades in over 120ms.
  • Reduced motion: no fade.

Responsive behaviour

  • Do not rely on colour alone for the meters; add text such as Fast.
  • Remember the choice so it persists across sessions.

Code

HTML
<div class="bx"><div class="wr"><button class="tg" id="tg" type="button" aria-haspopup="listbox" aria-expanded="false" aria-controls="lb"><span id="cur">Balanced</span><i>▾</i></button><ul class="lb" id="lb" role="listbox" aria-label="Model" tabindex="-1" hidden></ul></div><p class="out" id="out" role="status"></p></div>

Related patterns

Dropdown Menu

↗
Dropdown MenuOverlays & Dialogs

AI Prompt Composer

↗
AI Prompt ComposerAI & Conversational

Response Version Switcher

↗
Response Version SwitcherAI & Conversational