# Select menu

Choose an option with descriptions and keyboard navigation.

Access: pro. Category: Forms. Kind: primitive.

## When to use

- Use it when a product interface needs choose an option with descriptions and keyboard navigation.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.

## Alternatives

- Choose combobox instead when people must search or create within a long option list.
- Choose native-select instead when platform-native behavior and form simplicity matter most.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.


## Install Select menu

```sh
npx shadcn@latest add @tidal-pro/select-menu
```

Stylesheets: `components/ui/tidal.css`, `components/ui/select-menu.css`.

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/select-menu.css";
import{TidalSelect}from"./components/ui/select-menu";
export default()=><div className="tidal-scope"><TidalSelect label={"Demo"} onValueChange={() => {}} options={[{value:"value",label:"Demo"}]} value={"value"}/></div>;
```

## Structured props

- `TidalSelect.label: string`: Required label value accepted by this exported component.
- `TidalSelect.onValueChange: (value: string) => void`: Callback invoked when the value change interaction is proposed.
- `TidalSelect.options: Array<SelectOption>`: Required options value accepted by this exported component.
- `TidalSelect.value: string`: Required value value accepted by this exported component.
- `TidalSelect.className?: string | undefined` (default ""): Optional class name value accepted by this exported component.
- `TidalSelect.description?: string | undefined`: Optional description value accepted by this exported component.
- `TidalSelect.disabled?: boolean | undefined`: Optional disabled value accepted by this exported component.
- `TidalSelect.name?: string | undefined`: Optional name value accepted by this exported component.
- `TidalSelect.placeholder?: string | undefined` (default "Choose an option"): Optional placeholder value accepted by this exported component.
- `TidalSelect.required?: boolean | undefined`: Optional required value accepted by this exported component.
- `TidalSelect.theme?: "light" | "dark" | undefined` (default "light"): Optional theme value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/select-menu.tsx) | [Manifest](https://tidalui.com/examples/select-menu.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
import "./components/ui/tidal.css";

import { useState } from "react";

import { TidalSelect } from "./components/ui/select-menu";

import "./components/ui/select-menu.css";



const tidalExampleStyles = ".select-specimen{width:100%;max-width:320px;background:var(--t-surface);border:1px solid var(--t-border);border-radius:var(--t-radius-card);padding:24px;box-shadow:0 10px 20px -12px #00000026,0 1px 2px #00000008}.select-specimen>.demo-eyebrow{display:block;font-size:11px;margin-bottom:12px}.select-specimen>h3{font-size:22px;color:var(--t-ink);letter-spacing:-.7px;margin:0 0 24px}.select-demo-status{font-size:11px;color:var(--t-muted);margin:18px 0 0;padding-top:15px;border-top:1px solid var(--t-border)}";

export function SelectDemo({ theme = "light" }: { theme?: "light" | "dark" }) {
  const [value, setValue] = useState("pro");
  return (
    <div className="select-specimen">
      <TidalSelect
        label="Workspace plan"
        value={value}
        onValueChange={setValue}
        theme={theme}
        options={[
          {
            value: "starter",
            label: "Starter",
            description: "Up to 3 projects and 1 workspace.",
          },
          {
            value: "pro",
            label: "Pro",
            description: "Unlimited projects and 3 workspaces.",
          },
          {
            value: "team",
            label: "Team",
            description: "Unlimited projects and 10 workspaces.",
          },
          {
            value: "enterprise",
            label: "Enterprise",
            description: "Coming soon.",
            disabled: true,
          },
        ]}
      />
      <p className="select-demo-status" role="status">
        {value === "starter"
          ? "3 projects · 1 workspace"
          : value === "pro"
            ? "Unlimited projects · 3 workspaces"
            : "Unlimited projects · 10 workspaces"}
      </p>
    </div>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <SelectDemo />
    </div>
  );
}

```

## Gotchas

- Keep field state, validation results, submission, and persistence in the host form workflow.

## Theme and accessibility

{"tokens":["--t-accent","--t-border","--t-border-strong","--t-canvas","--t-danger","--t-display","--t-ease-out","--t-ease-spring","--t-faint","--t-font","--t-ink","--t-line","--t-muted","--t-primary","--t-primary-contrast","--t-radius-card","--t-radius-control","--t-radius-overlay","--t-radius-panel","--t-ring","--t-shadow-lg","--t-shadow-soft","--t-soft","--t-subtle","--t-surface","--t-wash"],"darkMode":true}

{"keyboard":["Tab and Shift+Tab follow the component's native focus order.","Arrow-key behavior follows the exported composite-control implementation."],"aria":"The component wires labels and relationships from consumer-provided visible text or ARIA props; preserve those labels in production.","notes":"Verify focus visibility, text alternatives, contrast, and reduced motion in the final composition."}

Controlled label, options ({value,label,description?,disabled?}[]), value, onValueChange. Optional placeholder, description, disabled, required, name, theme and className. Option values must be unique and nonempty; controlled value must match an option or be empty for the placeholder. Radix keyboard/typeahead and native form participation. Pass theme for portal palette.
