Select

Choose one or more options from a menu, with descriptions, disabled options and a placeholder.

import { Select } from "@plexui/react-native"

The menu's rows are those of a Menu.

Examples

Overview

Platforms

iOS 26Android
Native componentPop-up button (menu picker), or a sheet of rows with picker="sheet"Choice dialog (radio rows; checkbox rows and OK with multiple), a popup menu with picker="menu", or a bottom sheet with picker="sheet"
LookAn up and down chevron; a glass menu at least 250pt wide, over the value in a rowThe value in the accent in a row (a dropdown arrow on a field); a dialog of radio rows with Cancel

API

Select

PropTypeDefaultDescription
optionsreadonly SelectOption[]—The options (required)
valuestring | null | undefined—The value of the chosen option (required); null or a value of no option shows the placeholder. With multiple, the values of the chosen options (string[])
onChange(option: SelectOption) => void—Called with the option a person chooses (required). With multiple, (options: SelectOption[]) => void, called with the options chosen in their order
multiplebooleanfalseSeveral options can be chosen; each press checks or unchecks one and the menu stays open (options with a group: one chosen in each group)
valueDisplay"summary" | "labels""summary" ("labels" with groups)How the field writes several choices: the one label, the count (3 selected) or allSelectedLabel; or the chosen labels joined by a middle dot, at a row's end the row's value (under its label once it does not fit beside it)
groupsreadonly SelectGroup[]—With multiple: how the groups of the options (SelectOption.group) show, a heading or a submenu; the menu parts each group from the next
allSelectedLabelstring"All selected"The field's text when a multiple select has every option chosen
placeholderstring"Select…"Shown while no option is chosen
variant"outline" | "soft" | "ghost""outline"The field's fill style, as Input's
size"3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl""md"Step of the control scale, as Input's
pillbooleanfalseA capsule
blockbooleantrueFills the width; false makes the field as wide as its value
invalidbooleanfalseDraws the field in the error color
disabledbooleanfalseDims the field and takes no presses
aria-labelstring—Name of the field and its menu for assistive technology
picker"dialog" | "menu" | "sheet""menu" on iOS; "dialog" on Android ("menu" with multiple)What a press opens: the menu of the options (a row's menu in a List row), a bottom sheet of rows, or on Android the choice dialog (radio rows; with multiple, checkbox rows, Cancel and OK). iOS has no dialog: it opens the menu; options in groups never open the dialog
titlestringthe aria-labelThe title of the picker dialog or sheet (picker "dialog" or "sheet"), the setting's name
cancelLabelstring"Cancel"Android: the button that closes the picker dialog (picker="dialog") with no change
okLabelstring"OK"Android: the button of a multiple select's picker dialog (picker="dialog") that applies the rows checked
testIDstring—Test id; the menu (Android: the dialog) takes <testID>-menu, the sheet <testID>-sheet, each option <testID>-option-<value>, a submenu's row <testID>-group-<key>, Android's Cancel <testID>-cancel and OK <testID>-ok
styleStyleProp<ViewStyle>—Style of the field's outer box

SelectOption

PropTypeDefaultDescription
valuestring—The option's value (required)
labelstring—Shown in the field and the menu (required)
descriptionReactNode—Secondary text under the label in the menu
disabledboolean—Shown dimmed in the menu and cannot be chosen
groupstring—With multiple: the key of the group the option belongs to, of which one is chosen at a time; a group's options stand together

SelectGroup

PropTypeDefaultDescription
keystring—The group of its options (SelectOption.group, required)
labelstring—A heading over the group's options; for a submenu, the label of the row that opens it
submenubooleanfalseThe options open from a row of their own, the choice under its label: a submenu over the menu on iOS, a page of the popup with Back on Android