Skip to content

Demos#

Default dropdown#

No value is defined, but a title is given.

Dropdown with different item content directions#

Icon on left side#

Dropdown as tertiary variant#

Dropdown in different sizes#

Four sizes are available: small, default, medium and large

Custom width#

Dropdown with status#

And vertical label layout.

Findable list#

With long list to make it scrollable and searchable

Disabled dropdown#

Individual options can also be disabled.

Disabled tertiary dropdown#

Customized Dropdown#

An example of how you can customize the look of your Dropdown

Dropdown with List item content#

Reuse the List row layout for rich option content. The option is already an <li> and wraps its content in <span> elements, so use element="span" on List.Item.Basic and its cells to keep the markup valid. Give the Dropdown a width that fits both the title and the end value, and provide selectedValue with the plain text to show once an option is selected. See rendering a row outside a List.Container for the details.

DrawerList opened#

Only to visualize and used for visual testing

Groups#

If an item has a groupIndex property, it will use the groups in the groups property. Only the first group can be without title, all other groups must have a title.

No divider#

We can remove the divider between items with the noDivider prop. Beware that this can make information dense lists difficult to parse.

Suggest an edit