TidalUI

Select menu preview

Choose an option with descriptions and keyboard navigation.

pro · Forms · primitive

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

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

Import components/ui/tidal.css, components/ui/select-menu.css. Wrap installed components in tidal-scope.

Preview

Select menu component preview

Open interactive preview

Minimal example

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>;

API and props

TidalSelect.label (required)
string

Required label value accepted by this exported component.

TidalSelect.onValueChange (required)
(value: string) => void

Callback invoked when the value change interaction is proposed.

TidalSelect.options (required)
Array<SelectOption>

Required options value accepted by this exported component.

TidalSelect.value (required)
string

Required value value accepted by this exported component.

TidalSelect.className
string | undefined

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

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

Optional theme value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas