Applies to every preview on the site.
Installation
One command copies the source into your app — you own the code and can change anything.
After you add the file, import it like any local component:
import { Select } from "@/components/ui/select";Or add it with the CLI (installs any missing peers):
Usage
useKit(). Wrap your app in <KitProvider accent="#6366f1" radius={14}> to re-skin every component at once.Like this? There's a lot more in Pro Pro
12 full screens built from the same kit — install them the same way.
Props
| Prop | Type | Default |
|---|---|---|
| options Plain values or rich options; `group` adds section headings. | (T | { label, value, description?, icon?, group?, disabled? })[] | — |
| value / defaultValue Controlled or uncontrolled selection. | T | null | null |
| onValueChange Called when a row is chosen. | (value, option) => void | — |
| multiple Checkbox rows; the menu stays open while toggling, with Clear / Done in its footer. The field shows animated chips plus a "+N" overflow chip. | boolean | false |
| values / defaultValues Controlled or uncontrolled selection in multiple mode. | T[] | [] |
| onValuesChange Called whenever a row is toggled in multiple mode. | (values, options) => void | — |
| maxChips Selections shown as chips; the rest collapse into a "+N" chip (0 shows a single "N selected" chip). | number | 2 |
| removableChips Show a ✕ on each chip in the field to remove it without opening the menu. | boolean | true |
| label Floating label / placeholder. | string | — |
| floatingLabel Set to false to put the label above the field as static text (no notch) and show placeholder inside. | boolean | true |
| placeholder Shown in the field while open with nothing selected. | string | labels.selectPlaceholder |
| presentation Anchored dropdown under the field (flips above when needed) or a bottom sheet (dialog when wide). | "dropdown" | "sheet" | "dropdown" |
| variant Deprecated alias of `presentation`. | "dropdown" | "sheet" | — |
| size Trigger height (44 / 54 / 64, matching FloatingInput), text, padding, radius and chevron size. | "sm" | "md" | "lg" | "md" |
| searchable Filter field above the options with highlighted matches and an empty state. | boolean | false |
| searchPlaceholder Placeholder of the filter field. | string | labels.search |
| emptyText Hint under "No results" when the search matches nothing. | string | — |
| title Sheet heading (sheet presentation only). | string | label |
| error / helper Message under the field; errors shake once. | string | — |
| disabled Dims to 50% and blocks opening. | boolean | false |
| accent Focus, label and check colour. | string | theme accent |
| surface Colour behind the field (paints the label notch). | string | theme background |
| minMenuWidth Minimum dropdown width; otherwise it matches the field. | number | 200 |
| maxMenuHeight Dropdown height cap before it scrolls (it also shrinks to the room on screen). | number | 320 |
| style Style for the outer wrapper around the trigger field and message (the one that shakes). | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
| fieldStyle 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. | StyleProp<ViewStyle> | — |
| inputStyle Selected value / placeholder text in the trigger (single mode). | StyleProp<TextStyle> | — |
| labelStyle 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. | StyleProp<TextStyle> | — |
| messageStyle Helper / error text. color applies to the helper; errors stay danger. | StyleProp<TextStyle> | — |
| placeholderTextColor Placeholder colour in the trigger. | string | theme mutedForeground |
| iconColor Chevron colour at rest (accent while open). | string | theme mutedForeground |
| menuStyle Dropdown / sheet panel — background, border, radius, padding, shadow (transform and opacity are animated). | StyleProp<ViewStyle> | — |
| optionStyle Each option row — padding, minHeight, radius, background (press / keyboard highlight still show). | StyleProp<ViewStyle> | — |
| optionTextStyle Each option's label text. | StyleProp<TextStyle> | — |
Customization
You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.
Design theme
Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).
Variants
Pick the Variants chip above the preview, or set variant=… — "dropdown" | "sheet".
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- variant
- "dropdown" | "sheet"Deprecated alias of `presentation`.
- size
- "sm" | "md" | "lg" · default "md"Trigger height (44 / 54 / 64, matching FloatingInput), text, padding, radius and chevron size.
- accent
- string · default theme accentFocus, label and check colour.
- surface
- string · default theme backgroundColour behind the field (paints the label notch).
- style
- StyleProp<ViewStyle>Style for the outer wrapper around the trigger field and message (the one that shakes).
- className
- stringTailwind 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 · default theme mutedForegroundPlaceholder colour in the trigger.
- iconColor
- string · default theme mutedForegroundChevron 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.
Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.
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.
Source
FAQ
How do I make a dropdown in React Native?
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?
react-native-svg) are all included in Expo Go.How do I add Select to my Expo app?
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?
Can I change how Select looks?
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.