Select

Allows you to select one or more options from a list.

Examples

Select multiple :

Theme

Props

Name

Type

Default value

Description

id
required

string

null

The id of the select.

isMulti

bool

false

A boolean which is true if we allow multiple selection.

name

string

''

Name of the component.

onChange

func

null

Function which is called when the value selected has changed.

options
required

array

null

The options of the select.

size

number

0

Number of elements displayed.

value

any

null

The value to use as a controlled component.

defaultValue

any

null

The default value to use as an uncontrolled component.