Dropdown

A 60px field that opens a menu of options with an icon, a label, a line of description and an optional badge. Picking one closes the menu and shows it in the field.

This is a hint text to help user.Info Here

Add a closed Orvain Dropdown titled “Field Title”, required, with the placeholder “Choose an action...” and the hint “This is a hint text to help user.”; its menu holds 6 actions: • “Auto” • “Open link”, with a “New” badge • “Find file”, “Add to task list” and “Download file” • “Archive”, disabled

Orvain MCPIncluded with the library

When to use#

  • To choose one option from a list too long for Radio buttons: a country, a role, an action.
  • When space is tight and the current value matters more than the alternatives.

When not to use

  • Use a Radio group for fewer than five options that people should compare.
  • Use a combobox with filtering for long lists that people search.

Anatomy#

1Label

Above the trigger, as for an Input.

2Trigger

The Input's 60px field, with the value or placeholder and a chevron.

3Menu

16px below, radius 32, a 1.5px #f2f2f2 stroke and 20px in; rows 4px apart.

4Row

Radius 12, 12px in: a 20px icon, label, description and badge.

States#

Default and Hover

As for the Input.

Focused

Open: a near-black stroke and the menu shown.

Filled

The chosen option's label in the field.

Empty + Error

A red stroke and hint.

Disabled

Grey, without a chevron, and does not open.

Source#

The Dropdown ships in the free packages, @orvain/react and @orvain/vue, and in the Figma library with every variant and state shown above. The code on this page is the code you install.

Install the packages

Used in these blocks