Skip to content
Design System
GitHub

Extra detail anchored to a control.

Popover default

Install
npx shadcn add @syncrobotic/popover

Also installs: radix-ui, @syncrobotic/cn

Overview

A small panel anchored to a control, with extra detail or a quick setting.

When to use

  • A date picker, a short form, an explanation with a link.

Use something else

More examples

States and real uses. Each example is also a Storybook story and a visual regression test.

Popover with form

Usage rules

  • A small control or a few facts tied to one trigger: a filter, a colour, a definition.
  • More than a few fields, or a decision, is a Sheet or Dialog. A hint that needs no interaction is a Tooltip.
  • The panel is a dialog, so it needs a name: aria-label on PopoverContent (usually the trigger's words, aria-label="Battery filter"), or aria-labelledby pointing at a heading inside it or at the trigger's id.

Changelog

  • 0.17.22026-11-19A comment says where keyboard focus shows instead of the removed outline (no change in behaviour); checked by lint:rules.
  • 0.6.02026-11-17Appears and disappears.
  • 0.5.02026-11-17First versioned release. Earlier history is in CHANGELOG.md.

How to upgrade