Job board

Dropdown input

A dropdown input lets someone pick from a fixed list of options. It shows the current selection as Value text under its Label text, and opens Dropdown menu when focused.

Design
Finished
Level
Draft
Audit
1 open findingat the audit of
Last changed

Preview

Dropdown input, default variant as designedDropdown input, default variant as designed
Default variant as designed, light modedark modeOpen in Figma

Usage

Do

  • Use when the option list is fixed and short enough to scan
  • Set Label text always, and Value text to the current selection
  • Choose Disabled first, then let code drive State

Don't

  • Use for free-form entry: use Search input
  • Use for filtering a result set in place: use Filter chip
  • Leave Label text empty and rely on the value to explain the field

Behaviour

  • State=Focus shows the component with its Dropdown menu open; every other state shows it closed
  • Interactive states (Focus, Hover, Press) and Disabled are managed by code and not applied in static designs

Composition

  • Contains a chevron-down icon
  • Dropdown menu, filled with Dropdown menu - item, appears on the State=Focus variant; import both rather than rebuilding the open state

Accessibility

Follows the WAI-ARIA combobox pattern: roles, keyboard and focus behaviour.

Dependencies in Figma

Built fromDropdown menu — brings Dropdown menu - itemDropdown menuDropdown inputDropdown input

Built from

Places 1 component from another library: Icon/chevron-down / Size=24. This snapshot does not hold them, so this page cannot link to them or describe them.

Level checks

Draft · next level blocked by Errors open

The ladder's checks for Dropdown input
CheckLevelResult
AuditedReadyPasses
No errors openReady1 error open
Has a descriptionReadyPasses
Usage and Don't writtenReadyChecked at the next audit
Every layer namedReadyPasses
In codeReadyPasses
No warnings openStablePasses
Code gen notes writtenStableChecked at the next audit
Auto layout throughoutStableChecked at the next audit
Matches the designStablePasses

Anatomy

123
Every option switched on: what the component can contain, not how it is usually used
#PartShownComponent
1LabelAlways–
2LabelAlways–
3IconAlwayschevron-down

Properties

Dropdown input: each property, its type, values and default
PropertyTypeValuesDefault
DisabledVariant
FalseTrue
False
StateVariant
RestFocusHoverPress
Rest
Label textTextany textLabel
Value textTextany textValue

States

StateSet by
FocusInteraction
HoverInteraction
PressInteraction
DisabledThe Disabled property

Implementation

What code builds differently from the drawing, and why
FigmaCodeWhy
Input, inside strokeborder with box-sizing: border-box and padding less the stroke, or box-shadow: inset 0 0 0 <width>Figma's inside stroke takes no space; a border does.
Label, truncated to one lineoverflow: hidden; text-overflow: ellipsis; white-space: nowrap, min-width: 0 on the flex itemWithout the minimum width a flex item never shrinks enough to truncate.
Dropdown menu, absolute positionposition: absolute in a positioned parentOut of the flow: it neither pushes siblings nor sizes the parent.
Disableddisabled, or aria-disabled where it must stay focusableThe element's own state: the browser keeps it out of the tab order and out of form submission.
State: Focus, Hover, Press:focus-visible, :hover, :activePseudo-classes the browser sets, so a template cannot claim a state the control is not in.

Changes on 4 Nov
ChangeTypeFigma filesCodeDetails
Label: height · 3 variantsRestyledBreakingMinor
Input: positionRestyledBreakingMinor
Label: position · 2 variantsRestyledBreakingMinor
Dropdown input: heightRestyledBreakingMinor
00: heightRestyledBreakingMinor
00: positionRestyledBreakingMinor
Label: text style · 2 variantsRestyledMinorMinor
00: text styleRestyledMinorMinor
Label: line heightRestyledMinorMinor
Label: letter spacing · 2 variantsRestyledMinorMinor
00: line heightRestyledMinorMinor
00: letter spacingRestyledMinorMinor

Changes on 19 Sept
ChangeTypeFigma filesCodeDetails
DescriptionDocsPatchPatch

Changes on 6 Sept
ChangeTypeFigma filesCodeDetails
Input: strokeRestyledMinorMinor

Changes on 1 Sept
ChangeTypeFigma filesCodeDetails
Label: height · 3 variantsRestyledBreakingMinor
Input: positionRestyledBreakingMinor
Label: position · 2 variantsRestyledBreakingMinor
Dropdown input: heightRestyledBreakingMinor
00: heightRestyledBreakingMinor
00: positionRestyledBreakingMinor
Label: line heightRestyledMinorMinor
00: line heightRestyledMinorMinor
Input: strokeRestyledMinorMinor

Changes on 22 Aug
ChangeTypeFigma filesCodeDetails
Instances re-pointed (4 layers)ChangedBreakingMinor
Dropdown menu - item: propsRestyledMinorMinor
Dropdown menu - item#2: propsRestyledMinorMinor
Dropdown menu - item#3: propsRestyledMinorMinor
Dropdown menu - item#4: propsRestyledMinorMinor

Changes on 21 Aug
ChangeTypeFigma filesCodeDetails
Nested component renamed (5 layers)Not gradedNot gradedNot graded
Its values movedRestyledMinorMinor
Layer Content slotAddedMinorPatch
Layer Dropdown menu - itemAddedMinorPatch
Layer ContentAddedMinorPatch
Layer CheckboxAddedMinorPatch
Layer LabelAddedMinorPatch
Layer 00AddedMinorPatch
Layer Dropdown menu - item#2AddedMinorPatch
Layer Dropdown menu - item#3AddedMinorPatch
Layer Dropdown menu - item#4AddedMinorPatch
ComponentAddedMinorMinor