---
title: "Morph Select"
description: "A select whose button grows into its list as one shape. One highlight glides from option to option as you move."
url: https://gelatinui.com/components/morph-select
markdown_url: https://gelatinui.com/components/morph-select.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/morph-select"
version: "2026-11-09"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Morph Select

> A select whose button grows into its list as one shape. One highlight glides from option to option as you move.

Page: https://gelatinui.com/components/morph-select

## When to use it

Best for: One value from a short or grouped list, where the open list should feel part of the field.

- Use it for a value people change now and then: a setting, a property, a chart range.
- Use `MorphSelectItemMeta` for a short detail after each name: an offset, a count, a key.
- Use `align="end"` for a trigger at the end of a row: the surface grows toward the start.

## When not to use it

- For a long list that people search by typing, use a [Combobox](https://gelatinui.com/components/combobox.md).
- For a plain form field with no motion, use a [Select](https://gelatinui.com/components/select.md).
- For two to five choices that all show at once, use a [Segmented Control](https://gelatinui.com/components/segmented-control.md).

## Notes for agents

- Every part is a Base UI Select part: `items`, `value`, `defaultValue`, `onValueChange`, `name`, `required`, `disabled`, and `readOnly` go on `MorphSelect`.
- `size` goes on the root (`xs`, `sm`, `default`, `lg`), not on the trigger, so the copy of the trigger in the open surface matches.
- Each option is `MorphSelectItem` with a `MorphSelectItemText`; put an icon before the text and a `MorphSelectItemMeta` after it.
- The open surface is 256px wide by default; set another width with `className` on `MorphSelectContent`. It is never narrower than the trigger.
- A keyboard open or close has no motion, and arrow keys move the highlight at once.

## Anatomy

```text
MorphSelect
├─ MorphSelectTrigger (0..n)
├─ MorphSelectValue (0..n)
├─ MorphSelectContent (0..n)
├─ MorphSelectItem (0..n)
├─ MorphSelectItemText (0..n)
└─ MorphSelectItemMeta (0..n)
```

## API reference

### MorphSelect

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `size` | `ControlSize` | "default" | The field size of the trigger and of its copy in the open surface. Default `default` (32px). |

Also takes every prop of Base UI `Select.Root`: https://base-ui.com/react/components/select

### MorphSelectTrigger

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

Also takes every prop of Base UI `Select.Trigger`: https://base-ui.com/react/components/select

### MorphSelectValue

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

Also takes every prop of Base UI `Select.Value`: https://base-ui.com/react/components/select

### MorphSelectContent

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  | The classes of the popup box. Its width is the open width (default 256px, never under the trigger). |
| `align` | `"end" \| "start"` | "start" | The edge of the trigger that stays put while the surface grows. Default `start`. |
| `portalProps` | `Omit` |  | Other Base UI props of the inner parts. A `className` here adds to the component classes. |
| `positionerProps` | `PopupPartProps` |  |  |
| `listProps` | `PopupPartProps` |  |  |

Also takes every prop of Base UI `Select.Popup`: https://base-ui.com/react/components/select

### MorphSelectItem

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

Also takes every prop of Base UI `Select.Item`: https://base-ui.com/react/components/select

### MorphSelectItemText

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

### MorphSelectItemMeta

No props of its own: `className`, `children`, and every other prop go to the element it renders.

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| MorphSelectTrigger | `morph-select-trigger` | `data-align`, `data-readonly`, `data-side`, `data-size` | `--morph-select-anchor`, `--morph-select-text-from`, `--morph-select-text-to` |  |
| MorphSelectValue | `morph-select-value` |  |  |  |
| MorphSelectContent | `morph-select-content` | `data-closed` | `--anchor-width`, `--available-height`, `--available-width` |  |
| MorphSelectItem | `morph-select-item` | `data-ending-style`, `data-highlighted`, `data-starting-style` |  | `motion-timing` |
| MorphSelectItemText | `morph-select-item-text` |  |  |  |
| MorphSelectItemMeta | `morph-select-item-meta` |  |  |  |

## Usage

Pass `items` (value to label), so the trigger shows the label and not the raw value.

```tsx title="time-zone-select.tsx"
import {
  MorphSelect,
  MorphSelectContent,
  MorphSelectItem,
  MorphSelectItemMeta,
  MorphSelectItemText,
  MorphSelectTrigger,
  MorphSelectValue,
} from "@/components/ui/pro/morph-select";

const ZONES = [
  { value: "Europe/London", label: "London", offset: "UTC+0" },
  { value: "Europe/Belgrade", label: "Belgrade", offset: "UTC+1" },
  { value: "Asia/Tokyo", label: "Tokyo", offset: "UTC+9" },
];

export function TimeZoneSelect() {
  return (
    <MorphSelect items={ZONES} defaultValue="Europe/Belgrade">
      <MorphSelectTrigger aria-label="Time zone" className="w-44">
        <MorphSelectValue />
      </MorphSelectTrigger>
      <MorphSelectContent>
        {ZONES.map((zone) => (
          <MorphSelectItem key={zone.value} value={zone.value}>
            <MorphSelectItemText>{zone.label}</MorphSelectItemText>
            <MorphSelectItemMeta>{zone.offset}</MorphSelectItemMeta>
          </MorphSelectItem>
        ))}
      </MorphSelectContent>
    </MorphSelect>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/morph-select
```

It adds 33 registry items: 30 files, 5569 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `@phosphor-icons/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Select](https://gelatinui.com/components/select.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Select](https://gelatinui.com/components/select.md)
- [Combobox](https://gelatinui.com/components/combobox.md)
- [Segmented Control](https://gelatinui.com/components/segmented-control.md)
- [Field](https://gelatinui.com/components/field.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Enter, Space | On the trigger, opens the list. In the list, picks the highlighted option and closes it. |
| Down Arrow, Up Arrow | Opens the list, then moves the highlight. |
| Letters | Moves the highlight to the option that starts with the letters. |
| Escape | Closes the list and keeps the focus on the trigger. |

## Accessibility

It is a Base UI Select. The trigger is a combobox, and the open list is a listbox.

`MorphSelectLabel` names the trigger. Without it, give the trigger an `aria-label`.

The copy of the trigger in the open surface is hidden from screen readers and out of the tab order.

## Motion

| Part | Motion |
| --- | --- |
| Open and close | glide · a spring with no bounce, about 150ms · the surface grows from the trigger box to the list, and back |
| List content | glide · comes in out of a 4px blur at 96% scale, on the same spring |
| Highlight | glide · one highlight slides to the option under the pointer |
| Value | fade · 150ms · the new value rises 6px out of a 2px blur |
