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
Dropdown Menu
Overlays
No dependencies
A menu hung off a button: the popover API for the layer, arrow keys for the list, and light-dismiss for free.
Preview: A button with an open menu of four actions beneath 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