# Select — React Native component for Expo

> A dropdown or sheet picker with a floating label; multi-select shows removable chips.

A form field with a floating label and a glowing focus halo that opens a dropdown anchored right under it — matching its width, preferring below, flipping above only when there's clearly no room, re-placing itself on resize / rotation / keyboard, and scrolling inside when long — or, with presentation="sheet", a drag-to-dismiss bottom sheet (a dialog on wide screens). The chevron turns, rows carry icons, descriptions, groups and disabled states, the chosen row gets a springy accent check, search highlights matches with a "No results" state, multiple mode adds checkboxes and removable chips that pop in and collapse out smoothly (overflow rolls into a "+N" chip, the footer count rolls too), and on web arrow keys, Enter and Escape drive the menu.

- Docs: https://expokit.in/docs/components/select
- Tier: Free
- Also called: dropdown, picker, multi select, combobox
- Category: Inputs
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg
- Uses ExpoKit items: kit
- Variants: Validation, Plan, Country, Assignees, Sheet, Sizes, Colors

## Installation

Run once per project: `npx @expokit/cli@latest init` (shared theme + KitProvider). Then:

```bash
npx @expokit/cli@latest add select
```

The CLI copies the source into your project (you own the code) and installs react-native-svg.

Import: `import { Select } from "@/components/ui/select";`

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `options` | `(T \| { label, value, description?, icon?, group?, disabled? })[]` | — | Plain values or rich options; `group` adds section headings. |
| `value / defaultValue` | `T \| null` | `null` | Controlled or uncontrolled selection. |
| `onValueChange` | `(value, option) => void` | — | Called when a row is chosen. |
| `multiple` | `boolean` | `false` | Checkbox rows; the menu stays open while toggling, with Clear / Done in its footer. The field shows animated chips plus a "+N" overflow chip. |
| `values / defaultValues` | `T[]` | `[]` | Controlled or uncontrolled selection in multiple mode. |
| `onValuesChange` | `(values, options) => void` | — | Called whenever a row is toggled in multiple mode. |
| `maxChips` | `number` | `2` | Selections shown as chips; the rest collapse into a "+N" chip (0 shows a single "N selected" chip). |
| `removableChips` | `boolean` | `true` | Show a ✕ on each chip in the field to remove it without opening the menu. |
| `label` | `string` | — | Floating label / placeholder. |
| `floatingLabel` | `boolean` | `true` | Set to false to put the label above the field as static text (no notch) and show placeholder inside. |
| `placeholder` | `string` | `labels.selectPlaceholder` | Shown in the field while open with nothing selected. |
| `presentation` | `"dropdown" \| "sheet"` | `"dropdown"` | Anchored dropdown under the field (flips above when needed) or a bottom sheet (dialog when wide). |
| `variant` | `"dropdown" \| "sheet"` | — | Deprecated alias of `presentation`. |
| `size` | `"sm" \| "md" \| "lg"` | `"md"` | Trigger height (44 / 54 / 64, matching FloatingInput), text, padding, radius and chevron size. |
| `searchable` | `boolean` | `false` | Filter field above the options with highlighted matches and an empty state. |
| `searchPlaceholder` | `string` | `labels.search` | Placeholder of the filter field. |
| `emptyText` | `string` | — | Hint under "No results" when the search matches nothing. |
| `title` | `string` | `label` | Sheet heading (sheet presentation only). |
| `error / helper` | `string` | — | Message under the field; errors shake once. |
| `disabled` | `boolean` | `false` | Dims to 50% and blocks opening. |
| `accent` | `string` | `theme accent` | Focus, label and check colour. |
| `surface` | `string` | `theme background` | Colour behind the field (paints the label notch). |
| `minMenuWidth` | `number` | `200` | Minimum dropdown width; otherwise it matches the field. |
| `maxMenuHeight` | `number` | `320` | Dropdown height cap before it scrolls (it also shrinks to the room on screen). |
| `style` | `StyleProp<ViewStyle>` | — | Style for the outer wrapper around the trigger field and message (the one that shakes). |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |
| `fieldStyle` | `StyleProp<ViewStyle>` | — | The bordered box: background, border width / colour, radius, height, padding. Wins over the computed style; a borderColor replaces the resting border only (focus, error and success colours still show). A numeric height / borderRadius re-centres the label and resizes the halo. |
| `inputStyle` | `StyleProp<TextStyle>` | — | Selected value / placeholder text in the trigger (single mode). |
| `labelStyle` | `StyleProp<TextStyle>` | — | Label in both modes (floating and above). color is the resting colour — focus (accent), error and success still take over; fontSize sets the resting size, it floats at the same ratio and the notch follows its width. |
| `messageStyle` | `StyleProp<TextStyle>` | — | Helper / error text. color applies to the helper; errors stay danger. |
| `placeholderTextColor` | `string` | `theme mutedForeground` | Placeholder colour in the trigger. |
| `iconColor` | `string` | `theme mutedForeground` | Chevron colour at rest (accent while open). |
| `menuStyle` | `StyleProp<ViewStyle>` | — | Dropdown / sheet panel — background, border, radius, padding, shadow (transform and opacity are animated). |
| `optionStyle` | `StyleProp<ViewStyle>` | — | Each option row — padding, minHeight, radius, background (press / keyboard highlight still show). |
| `optionTextStyle` | `StyleProp<TextStyle>` | — | Each option's label text. |

## Behaviour & accessibility

- **Touch**: Tapping the field opens a dropdown anchored under it, flipping above when there's no room. presentation='sheet' slides up a bottom sheet you drag down to dismiss (a centred dialog on wide screens).
- **Motion**: The label floats onto the border, a focus halo glows and the chevron turns. In multiple mode chips pop in and collapse out, overflowing into a '+N' chip.
- **Keyboard**: On web, arrow keys move the highlight, Home and End jump, Enter picks, and Escape or Tab close the menu.
- **Screen readers**: The field is a combobox whose value lists the selection, with an expanded state. Options are menu items, or checkboxes in multiple mode.

## FAQ

### How do I make a dropdown in React Native?

Use ExpoKit's Select: run npx @expokit/cli@latest add select in your Expo or React Native project and it copies a ready-made dropdown into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Select work in Expo Go?

Yes. Select runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg) are all included in Expo Go.

### How do I add Select to my Expo app?

Run npx @expokit/cli@latest add select in your project. The CLI copies the component's source into your app and installs react-native-svg, so the code is yours to change.

### Is Select free?

Yes. Select is free: its full source is on this page and the CLI installs it without an account.

### Can I change how Select looks?

Yes. It takes its colours, radius and light / dark mode from useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.

## More

- Live preview, variants and code: https://expokit.in/docs/components/select
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
