Skip to content

feat: add TerminalKeyboard component with playground demo#90

Open
Alexi5000 wants to merge 1 commit into
OpenKnots:mainfrom
Alexi5000:pr/terminal-keyboard
Open

feat: add TerminalKeyboard component with playground demo#90
Alexi5000 wants to merge 1 commit into
OpenKnots:mainfrom
Alexi5000:pr/terminal-keyboard

Conversation

@Alexi5000
Copy link
Copy Markdown
Contributor

Summary

  • Adds TerminalKeyboard component that renders keyboard shortcut reference panels with styled key caps
  • Adds TerminalKey sub-component for individual key cap styling
  • Supports modifier symbol mapping (Cmd -> ⌘, Ctrl -> ⌃, Alt -> ⌥, Shift -> ⇧, arrows, etc.)
  • Exports component and types from the barrel (components/terminal.tsx)
  • Adds playground demo showing 4 shortcut groups (Navigation, Editing, Terminal, Multi-step)
  • Full JSDoc documentation on exported API

Screenshots

The component renders shortcut rows with terminal-glass styled key caps on the left and action labels on the right, matching the existing design language.

Test plan

  • pnpm typecheck passes with new component
  • Playground page renders keyboard demo section without errors
  • Key symbols render correctly for common modifiers (⌘, ⌃, ⌥, ⇧)
  • Responsive grid layout works on mobile and desktop
  • All themes apply correctly to key cap styling

Closes #82

Implements a terminal-style keyboard shortcut reference panel:
- TerminalKeyboard: renders a list of key combinations with labels
- TerminalKey: individual key cap with terminal-glass styling
- Supports modifier symbols (Cmd, Ctrl, Alt, Shift, arrows)
- Exports types (KeyCombo, TerminalKeyboardProps) from barrel
- Adds playground demo showing 4 shortcut groups

Closes OpenKnots#82
@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

@Alexi5000 is attempting to deploy a commit to the 0xBuns Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create TerminalKeyboard component

1 participant