You are currently viewing outdated (<=3.x) Chameleon documentation on our old website. For version >=4.x, check out our new website.

Current release: 3.5.0 | hub

components

Select (design)

Select gives users the ability to select a single item from a list of options.

Usage

A select is usually used in forms. It's best utilized in a case when a user has more than four options to choose from.

  • Always order the list of options in a logical order (eg. alphabetically, numerically)
  • Try to select a default value
  • If there's no logical default, try to use a clear placeholder text.

Behaviour

The selection menu, with a list of possible options, can be triggered by clicking into the text input field. A user can then select a single option after which the text input field updates to show the selected option.

I always have at least 4 available options
import { Select } from '@mediahuis/chameleon-react'

Guidelines

  • A select should be used in cases where there are more than 4 options
  • Always try to select a default option when possible
  • When a user has to make a single selection from less than 4 options, use the radio component or choice radio.

© Copyright 2020 Mediahuis NV. All rights Reserved