Shortcut
Displays a keyboard shortcut hint, such as "⌘ K", as a decorative visual cue.
Show codeHide code
Installation
import { Shortcut } from "@makeplane/propel/components/shortcut";Usage
import { Shortcut } from "@makeplane/propel/components/shortcut";
export default function BasicDemo() {
return <Shortcut keys="⌘ K" />;
}Examples
Sizes
size sets the key-cap text: sm 11 px or md 12 px, which is the default. This is Shortcut’s
own type scale, not the control ladder — a shortcut hint is a caption, not a control.
Show codeHide code
Key combinations
The keys prop is free-form text, so any combination of symbols or key names renders as-is.
Show codeHide code
In a button
Show codeHide code
API Reference
Shortcut
Public shortcut text slot. It is a visual hint by default; put the canonical `aria-keyshortcuts` value on the actionable item or trigger.