Skip to content
SENVENLI UI

Popover

Non-modal content anchored to a trigger: extra detail, a small form, a picker.
A small form under a button
import { Popover } from "@senvenli/react/overlay";

Examples

Closed by its own action

Controlled open state, so Apply can close the panel.

Extra detail, placed above

No title: an aria-label names the panel instead.

Guidelines

When to use it

  • Showing a little interactive content next to what opened it.

Use something else when

  • It is only a short hint. Tooltip
  • A preview of a link or person that opens on hover, with no click. Hover card

Accessibility

Keyboard

KeysWhat happens
EscCloses and returns focus to the trigger.

Built in

  • Positioned to stay on screen, also in RTL.

You provide

  • A trigger with a clear name.

API reference

Popover

triggerRequired
ReactElement<unknown, string | JSXElementConstructor<any>>

The pressable that opens it (a DS Button: "Filtre").

childrenRequired
React.ReactNode
placement
Placement

"bottom start" by default; React Aria flips it when there is no room.

isOpen
boolean
defaultOpen
boolean
onOpenChange
(isOpen: boolean) => void
title
React.ReactNode

A heading that also names the panel ("Filters"); without it, give aria-label.

aria-label
string
motion
ComponentMotion

auto (follow the device), reduce or none, for this component; the provider's setting otherwise.