Select

Menu menu for choosing single option from a list.

Installation

Add the component to your project using the following command:

Usage

Import

Import the component and its related parts.

select Parts

Structure

The expected structure and composition of the component.

Anatomy

Props

Each component part, its responsibility, and the props it exposes.

<SelectTrigger>

The select trigger component.

Base behavior is provided by Base UI Select. Refer to its documentation for the full API.
Name
Default
Options
`variant`
`default`
`default``subtle``plain`

Examples

Multiple

To allow users to select multiple options, pass the multiple prop to the Select component.

Group

To group options, pass the group prop to the Select component.

Icon

To add an icon to an option, you can place the icon inside the SelectItem component.

Disable Option

To disable an option, pass the disabled prop to the SelectItem component.