shadcn.io is not affiliated with official shadcn/ui
On Windows, F1 has opened help for decades. This React example shows it as a single Kbd cap, the hint to put next to a Help menu item or a help button, in apps that bring help up from the keyboard.
Preview
Installation
FAQ
When should an app document F1 for help?
When it actually opens your help, typically in desktop-style web apps with a lot of features. In a browser, F1 may open the browser's own help instead unless your page catches it.
Where should the F1 hint appear?
Next to the Help item in a menu, in a help button's tooltip and on the keyboard shortcuts page. It doesn't need to be on screen all the time.
What should F1 open?
Help for what the person is doing: the page or the focused field, not a generic start page. A side panel keeps their work visible while they read.
Does F1 work the same on Mac?
Not by default: on Mac keyboards, F1 lowers the screen brightness unless Fn is held or the function keys are set to standard mode. On Mac, ⌘? is the usual help shortcut.
Related
- F12 DevTools Key KbdA single F12 key, the shortcut that opens
- Function Keys Row KbdThe full F1 to F12 function key row
- Special Keys KbdThe Esc, Tab and Enter keys in a row
- Editing Keys KbdThe Home, End, PgUp and PgDn editing keys
- Modifier Keys KbdThe Shift, Ctrl and Alt modifier keys in
- Arrow Keys Cross Pattern KbdFour arrow keys in the inverted T of a