TidalUI

Keyboard key preview

Readable key labels and accessible shortcut chords for menus, search and help.

free · Essentials · primitive

When to use

Alternatives

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

Installation

npx shadcn@latest add https://tidalui.com/r/keyboard-key.json

Import components/ui/tidal.css, components/ui/keyboard-key.css. Wrap installed components in tidal-scope.

Preview

Keyboard key component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/keyboard-key.css";
import{TidalKeyboardKey}from"./components/ui/keyboard-key";
export default()=><div className="tidal-scope"><TidalKeyboardKey children={"value"}/></div>;

API and props

TidalKeyboardKey.children (required)
string | number

Required children value accepted by this exported component.

TidalKeyboardKey.size
"sm" | "md" | undefined

Optional size value accepted by this exported component.

TidalKeyboardShortcut.keys (required)
ReadonlyArray<TidalShortcutKey>

Required keys value accepted by this exported component.

TidalKeyboardShortcut.separator
string | number | undefined

Optional separator value accepted by this exported component.

TidalKeyboardShortcut.size
"sm" | "md" | undefined

Optional size value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas