Spyglass
Popover. An anchored panel you can use: focus moves in, Escape closes it and comes back out.
- Component
- Popover
- Pattern
- Anchored dialog
- Outputs
- React + Tailwind, HTML/CSS/JS
- Status
- In stock, tested
Test bench
Runs the exported code, not a mock-up.
Spyglass · React + TailwindFull width
| Keys | What happens |
|---|---|
| EnterorSpace | Open the popover. Focus moves to the first thing inside it. |
| TaborShift + Tab | Move through the actions inside. |
| Esc | Close it and put focus back on the trigger. |
Take it home
React + Tailwind CSS v4: install with one command, or copy the file. Your options are already in it.
npx shadcn@latest add "/r/popover.json"Run it in your project root. It writes components/popover.tsx with the options you set here. Needs Tailwind CSS v4 and a project set up for the shadcn CLI (npx shadcn@latest init).