TidalUI

Command menu preview

Search actions and navigate with the keyboard.

pro · Navigation · composite

When to use

Alternatives

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

Installation

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

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

Preview

Command menu component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/command-menu.css";
import{TidalCommandMenu}from"./components/ui/command-menu";
export default()=><div className="tidal-scope"><TidalCommandMenu actions={[{id:"example",label:"Demo",onSelect:() => {}}]}/></div>;

API and props

TidalCommandMenu.actions (required)
Array<CommandAction>

Required actions value accepted by this exported component.

TidalCommandMenu.className
string | undefined

Optional class name value accepted by this exported component.

TidalCommandMenu.label
string | undefined

Optional label value accepted by this exported component.

TidalCommandMenu.onAction
((id: string) => void) | undefined

Callback invoked when the action interaction is proposed.

TidalCommandMenu.placeholder
string | undefined

Optional placeholder value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas