Titled panel listing several actions with their key combos stacked on the right.
Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.
import { Keyboard3 } from "@/components/beste/piece/keyboard3";
<Keyboard3
title="Keyboard shortcuts"
shortcuts={[
{
"label": "Open search",
"keys": [
"⌘",
"K"
]
},
{
"label": "New file",
"keys": [
"⌘",
"N"
]
},
{
"label": "Toggle sidebar",
"keys": [
"⌘",
"B"
]
},
{
"label": "Switch workspace",
"keys": [
"⌘",
"⇧",
"O"
]
}
]}
/>