Popover

A trigger-positioned floating panel for arbitrary composed content.

Preview#

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>

Details#

API#WIP

...props
Base UI Popover.Root.Props
Owns open state, Escape, outside press, focus handoff, and modal behavior.
...props
Base UI Popover.Trigger.Props
Trigger part. Compose custom controls with Base UI's render prop.
...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.
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.
...props
div props
Static panel shell for docs previews and non-portaled comparison panes.
...props
Base UI Popover.Arrow.Props
Optional arrow pointing at the trigger. Compose inside PopoverContent.
...props
Base UI Popover.Backdrop.Props
Modal backdrop shown while a modal popover is open.
...props
Base UI Popover.Viewport.Props
Optional transition viewport for one popover whose content changes between multiple triggers.
...props
div props
Panel header layout for title, description, and close actions.
...props
div props
Optional horizontal separator. Compose it where the content needs a division.
...props
Base UI Popover.Title.Props
Accessible panel heading.
...props
Base UI Popover.Description.Props
Accessible supporting copy for the panel.
...props
Base UI Popover.Close.Props
Closes the popover. Compose your own visual affordance with render/className.