Skip to content
Menu

Overlays

Anchored popover card

Anchored popover card: A trigger button that opens a small settings card anchored to itself, scaling in from the edge it grows out of and closing on a second click, Escape, or a press outside.

Using Anchored popover card

Anchored popover card uses the card preview frame with a light/dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
anchorselectbottomOptions: top, bottom, left, right
gapnumber8From 0 to 24; step 2
accentcolor#7C5CFFNo additional limit in the metadata.
triggerLabeltextOpen panelUp to 24 characters
Which frameworks are available for Anchored popover card?

Anchored popover card is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Anchored popover card depend on?

The React metadata lists these npm dependencies beyond React: motion, radix-ui, clsx, tailwind-merge.

What accessibility details are visible in Anchored popover card?

The React source for Anchored popover card includes: native elements (button, input, label); attributes and handlers (aria-checked, aria-hidden, aria-label, aria-pressed); explicit roles (dialog, group, switch). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Anchored popover card handle reduced motion?

Anchored popover card reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0.08 : 0.16; reduced ? { duration: 0 } : { type: "spring", stiffness: 520, damping: 32 }; reduced ? { opacity: 0 } : { opacity: 0, scale: 0.92 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components