A small form under a button
import { Button } from "@senvenli/react/action";
import { Popover } from "@senvenli/react/overlay";
import { Checkbox, CheckboxGroup } from "@senvenli/react/selection";
export default function Example() {
return (
<Popover title="Filters" trigger={<Button iconBefore="list-filter">Filters</Button>}>
<CheckboxGroup label="Status" defaultValue={["open"]}>
<Checkbox value="open">Open</Checkbox>
<Checkbox value="paid">Paid</Checkbox>
<Checkbox value="overdue">Overdue</Checkbox>
</CheckboxGroup>
</Popover>
);
}import { Popover } from "@senvenli/react/overlay";Examples
Closed by its own action
Controlled open state, so Apply can close the panel.import { Button } from "@senvenli/react/action";
import { Input } from "@senvenli/react/form";
import { Stack } from "@senvenli/react/layout";
import { Popover } from "@senvenli/react/overlay";
import { useState } from "react";
export default function Example() {
const [isOpen, setIsOpen] = useState(false);
const [limit, setLimit] = useState(500);
const [draft, setDraft] = useState(limit);
return (
<Popover
title="Spending limit"
isOpen={isOpen}
onOpenChange={(next) => {
setIsOpen(next);
if (next) setDraft(limit);
}}
trigger={<Button>Limit: ${limit}</Button>}
>
<Stack space="space-200">
<Input type="number" label="Monthly limit" minValue={0} step={50} value={draft} onChange={setDraft} formatOptions={{ style: "currency", currency: "USD", maximumFractionDigits: 0 }} />
<Button
variant="primary"
onPress={() => {
setLimit(draft);
setIsOpen(false);
}}
>
Apply
</Button>
</Stack>
</Popover>
);
}Extra detail, placed above
No title: an aria-label names the panel instead.import { Button } from "@senvenli/react/action";
import { DescriptionList } from "@senvenli/react/display";
import { Popover } from "@senvenli/react/overlay";
export default function Example() {
return (
<Popover aria-label="Payment details" placement="top" trigger={<Button variant="link">Paid by card ending 4242</Button>}>
<DescriptionList
layout="stacked"
items={[
{ label: "Paid on", value: "March 18, 2026" },
{ label: "Amount", value: "$248.00" },
{ label: "Reference", value: "PAY-88213", copyValue: "PAY-88213" },
]}
/>
</Popover>
);
}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
| Keys | What happens |
|---|---|
| Esc | Closes 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
| Prop | Type | Default | Description |
|---|---|---|---|
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 | string | – | |
motion | ComponentMotion | – |
|
triggerRequiredReactElement<unknown, string | JSXElementConstructor<any>>The pressable that opens it (a DS Button: "Filtre").
childrenRequiredReact.ReactNodeplacementPlacement"bottom start" by default; React Aria flips it when there is no room.
isOpenbooleandefaultOpenbooleanonOpenChange(isOpen: boolean) => voidtitleReact.ReactNodeA heading that also names the panel ("Filters"); without it, give
aria-label.aria-labelstringmotionComponentMotionauto(follow the device),reduceornone, for this component; the provider's setting otherwise.