Utility
AI
Terminal
Installation
pnpm dlx shadcn@latest add https://termcn.dev/r/keyboard-shortcuts.json
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
| Prop | Type | Default |
|---|---|---|
shortcuts | Shortcut[] | required |
columns | number | 1 |
title | string | undefined |
Shortcut
| Prop | Type | Default |
|---|---|---|
key | string | required |
description | string | required |
category | string | undefined |