A shortcut written as Mod Z, which shows as โ on a Mac and Ctrl elsewhere.
Installation
Examples
Default
demo.tsx
- Undo
- Ctrl Z
- Redo
- Ctrl Shift Z
- Brush
- B
In a tooltip
A tooltip's shortcut shows after its text.
tooltip.tsx
In a menu
A menu item's shortcut sits at the end of the row.
menu.tsx
Anatomy
Each part's data-slot, which a theme styles, is beside it.
bun add @roprgm/ui