---
title: "Morph Select"
description: "Composable React select where the trigger morphs into the option list as one surface that grows open and shrinks back. Framer Motion layout, 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/morph"
markdown: "https://beui.dev/components/motion/select/morph.md"
license: "MIT"
---

# Morph Select

> Composable React select where the trigger morphs into the option list as one surface that grows open and shrinks back. Framer Motion layout, shadcn install.

## Install

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

## Dependencies

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

## Usage

### Morph Select usage

Composable primitives (MorphSelect, MorphSelectTrigger, MorphSelectValue, MorphSelectContent, MorphSelectItem) where the trigger morphs into the panel via a shared layoutId: one continuous surface that grows open and shrinks back, never detaching.

```tsx
"use client";

import { useState } from "react";
import {
  MorphSelect,
  MorphSelectContent,
  MorphSelectItem,
  MorphSelectTrigger,
  MorphSelectValue,
} from "@/components/motion/select-morph";

export function SelectMorphPreview() {
  const [value, setValue] = useState("next");
  return (
    <div className="w-56">
      <MorphSelect sound value={value} onValueChange={setValue}>
        <MorphSelectTrigger>
          <MorphSelectValue placeholder="Pick a framework" />
        </MorphSelectTrigger>
        <MorphSelectContent>
          <MorphSelectItem value="next">Next.js</MorphSelectItem>
          <MorphSelectItem value="remix">Remix</MorphSelectItem>
          <MorphSelectItem value="astro">Astro</MorphSelectItem>
          <MorphSelectItem value="vite">Vite</MorphSelectItem>
        </MorphSelectContent>
      </MorphSelect>
    </div>
  );
}
```

## API Reference

### MorphSelect

| 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 option's value when the user picks one. |
| `disabled` | `boolean` | `false` | No | Disable 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. |

### MorphSelectValue

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `placeholder` | `string` | — | No | Text shown in the trigger and panel header before anything is picked. Default: "Select" |
| `className` | `string` | — | No | Classes merged onto the value text. |

### MorphSelectTrigger

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

### MorphSelectContent

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

### MorphSelectItem

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `value` | `string` | — | Yes | Value reported when this option is picked. |
| `disabled` | `boolean` | `false` | No | Make the option unselectable and skip it in keyboard navigation. Default: false |
| `className` | `string` | — | No | Classes merged onto the option button. |

## More in Select

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

## Source

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