Popover
A trigger-positioned floating panel for arbitrary composed content.
Preview keeps the surface to one trigger and its supporting guidance panel.
import {
Popover,
PopoverClose,
PopoverContent,
PopoverHeader,
PopoverSeparator,
PopoverTitle,
PopoverTrigger,
} from "raft-ui";
<Popover>
<PopoverTrigger />
<PopoverContent>
<PopoverHeader>
<PopoverTitle />
<PopoverClose />
</PopoverHeader>
<PopoverSeparator />
</PopoverContent>
</Popover>...propsBase UI Popover.Root.Props
Owns open state, Escape, outside press, focus handoff, and modal behavior.
| Prop | Type | Default | Description |
|---|---|---|---|
...props | Base UI Popover.Root.Props | — | Owns open state, Escape, outside press, focus handoff, and modal behavior. |
...propsBase UI Popover.Trigger.Props
Trigger part. Compose custom controls with Base UI's render prop.
| Prop | Type | Default | Description |
|---|---|---|---|
...props | Base UI Popover.Trigger.Props | — | Trigger part. Compose custom controls with Base UI's render prop. |
...propsBase UI Popup + Positioner props
Portaled floating panel. Defaults to side=bottom, align=start, sideOffset=4, disableAnchorTracking=true, and forwards anchor/collision/sticky/inline-side positioning props.
| Prop | Type | Default | Description |
|---|---|---|---|
...props | Base UI Popup + Positioner props | — | Portaled floating panel. Defaults to side=bottom, align=start, sideOffset=4, disableAnchorTracking=true, and forwards anchor/collision/sticky/inline-side positioning props. |
containerHTMLElement | RefObject | null
Custom portal container for framed previews or contained overlays.
...propsBase UI Popover.Portal.Props
Portals the popup to the body or a custom container.
| Prop | Type | Default | Description |
|---|---|---|---|
container | HTMLElement | RefObject | null | — | Custom portal container for framed previews or contained overlays. |
...props | Base UI Popover.Portal.Props | — | Portals the popup to the body or a custom container. |
...propsdiv props
Static panel shell for docs previews and non-portaled comparison panes.
| Prop | Type | Default | Description |
|---|---|---|---|
...props | div props | — | Static panel shell for docs previews and non-portaled comparison panes. |
...propsBase UI Popover.Arrow.Props
Optional arrow pointing at the trigger. Compose inside PopoverContent.
| Prop | Type | Default | Description |
|---|---|---|---|
...props | Base UI Popover.Arrow.Props | — | Optional arrow pointing at the trigger. Compose inside PopoverContent. |
...propsBase UI Popover.Backdrop.Props
Modal backdrop shown while a modal popover is open.
| Prop | Type | Default | Description |
|---|---|---|---|
...props | Base UI Popover.Backdrop.Props | — | Modal backdrop shown while a modal popover is open. |
...propsBase UI Popover.Viewport.Props
Optional transition viewport for one popover whose content changes between multiple triggers.
| Prop | Type | Default | Description |
|---|---|---|---|
...props | Base UI Popover.Viewport.Props | — | Optional transition viewport for one popover whose content changes between multiple triggers. |
...propsdiv props
Panel header layout for title, description, and close actions.
| Prop | Type | Default | Description |
|---|---|---|---|
...props | div props | — | Panel header layout for title, description, and close actions. |
...propsdiv props
Optional horizontal separator. Compose it where the content needs a division.
| Prop | Type | Default | Description |
|---|---|---|---|
...props | div props | — | Optional horizontal separator. Compose it where the content needs a division. |
...propsBase UI Popover.Title.Props
Accessible panel heading.
| Prop | Type | Default | Description |
|---|---|---|---|
...props | Base UI Popover.Title.Props | — | Accessible panel heading. |
...propsBase UI Popover.Description.Props
Accessible supporting copy for the panel.
| Prop | Type | Default | Description |
|---|---|---|---|
...props | Base UI Popover.Description.Props | — | Accessible supporting copy for the panel. |
...propsBase UI Popover.Close.Props
Closes the popover. Compose your own visual affordance with render/className.
| Prop | Type | Default | Description |
|---|---|---|---|
...props | Base UI Popover.Close.Props | — | Closes the popover. Compose your own visual affordance with render/className. |