---
title: "Select"
description: "Composable React select: the panel pinches off the trigger and separates, rows reveal in a short stagger, and it opens upward when space runs out. shadcn install."
category: "Components"
parent: "https://beui.dev/components/motion/select"
publishedAt: "2026-06-28"
updatedAt: "2026-11-25"
documentation: "https://beui.dev/components/motion/select/default"
markdown: "https://beui.dev/components/motion/select/default.md"
license: "MIT"
---

# Select

> Composable React select: the panel pinches off the trigger and separates, rows reveal in a short stagger, and it opens upward when space runs out. shadcn install.

## Install

```bash
npx shadcn@latest add @beui/select
```

## Dependencies

- `clsx`
- `lucide-react`
- `motion`
- `react`
- `tailwind-merge`

## Usage

### Select usage

Composable primitives (Select, SelectTrigger, SelectValue, SelectContent, SelectItem); the panel pinches off the trigger and separates, with a short, shared row reveal. Position-aware (opens upward when needed).

```tsx
"use client";

import { useState } from "react";
import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/components/motion/select";

export function SelectPreview() {
  const [value, setValue] = useState("next");
  return (
    <div className="w-56">
      <Select sound value={value} onValueChange={setValue}>
        <SelectTrigger>
          <SelectValue placeholder="Pick a framework" />
        </SelectTrigger>
        <SelectContent>
          <SelectItem value="next">Next.js</SelectItem>
          <SelectItem value="remix">Remix</SelectItem>
          <SelectItem value="astro">Astro</SelectItem>
          <SelectItem value="vite">Vite</SelectItem>
        </SelectContent>
      </Select>
    </div>
  );
}
```

## API Reference

### Select

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `value` | `string` | — | No | The selected value, for controlled use. |
| `defaultValue` | `string` | — | No | The initial value when uncontrolled. |
| `onValueChange` | `((value: string) => void)` | — | No | Called with the new value when an option is picked. |
| `open` | `boolean` | — | No | Controlled open state of the panel. A layout that stacks selects can hold this to keep exactly one panel open — the panel is absolutely positioned inside its field, so two open at once paint over each other's options. |
| `defaultOpen` | `boolean` | `false` | No | Uncontrolled initial open state. Default false. |
| `onOpenChange` | `((open: boolean) => void)` | — | No | Fires whenever the panel opens or closes. The panel is absolutely positioned inside the field, so a layout that stacks selects has to know which one is open to paint it above its neighbours. |
| `disabled` | `boolean` | `false` | No | Disables the trigger so the panel cannot open. Default: false |
| `sound` | `boolean` | `false` | No | Play open and close swishes and a select on a pick. Off by default; a `SoundProvider` can mute it app-wide. |
| `className` | `string` | — | No | Classes merged onto the root element. |

### SelectTrigger

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `className` | `string` | — | No | Classes merged onto the trigger button. |

### SelectValue

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `placeholder` | `string` | — | No | Text shown while nothing is selected. Default: "Select" |
| `className` | `string` | — | No | Classes merged onto the label wrapper. |

### SelectContent

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `className` | `string` | — | No | Classes merged onto the options panel. |

### SelectItem

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `value` | `string` | — | Yes | Value reported when this option is picked. |
| `disabled` | `boolean` | `false` | No | Prevents picking this option. Default: false |
| `className` | `string` | — | No | Classes merged onto the option button. |

## More in Select

- [Morph Select](https://beui.dev/components/motion/select/morph.md)

## Source

- Registry detail: https://beui.dev/r/select
- Raw source: https://beui.dev/r/select/raw
- GitHub: https://github.com/starc007/ui-components
