/
1.1k
Sponsor

Keyboard Shortcuts

Formatted keyboard shortcut reference table

Terminal

Installation

$ pnpm dlx shadcn@latest add @termcn/ink/keyboard-shortcuts

Usage

import { KeyboardShortcuts } from "@/components/ui/keyboard-shortcuts";
<KeyboardShortcuts
  title="Editor Shortcuts"
  shortcuts={[
    { key: "Ctrl+S", description: "Save file" },
    { key: "Ctrl+Z", description: "Undo" },
    { key: "Ctrl+F", description: "Find" },
  ]}
/>

API Reference

KeyboardShortcuts

PropTypeDefault
shortcutsShortcut[]required
columnsnumber1
titlestring-

Shortcut

PropTypeDefault
keystringrequired
descriptionstringrequired
categorystring-

Notes

Accessibility

termcn exposes the following behavior through Ink's terminal accessibility APIs. This is not a browser ARIA or general WCAG-conformance claim.

  • Screen reader: Ink labels and semantic state expose the component without relying on visual styling alone.