Components
Everything on this site, installable
The site is built from these, so what you install is what you are looking at. Every preview below is the real component running, not a picture of one.
Add the registry once
export CTA_REGISTRY=https://adamjurek.com/r/registry.jsonContext Menu
Overlays
react-dom
One menu, reachable by right-click, by long press, and by a button. Escape and arrow keys included.
Preview: A menu opening at the pointer with four actions in it
Theme Toggle
Page structure
No dependencies
A segmented control that reports which option was pressed and knows nothing about themes. Roving focus, and `aria-checked` is the selector that draws it.
Preview: Three icons in a well, one lit
Kbd
Text
No dependencies
A key, drawn as one. Semantically <kbd>, visually the chip the command palette already wears.
Preview: Esc and ⌘K, drawn as keys
Command Palette
Navigation
No dependencies
Search over everything the host can name, in a native dialog: substring filter, arrow keys, and the host keeps the router.
Preview: A search field over a filtered list, floating mid-page