API reference
@salmonui/overlays/popover
18 exported symbols: 1 component, 5 functions, 7 interfaces and 5 types. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/overlays/popover';Components
PopoverContentThe floating panel (role="dialog", no aria-modal): mounted only while open, in the top layer, positioned next to the trigger (or anchor). Labelled by Popover.T…
Functions
PopoverPopover root: holds the open triad and the ids. Renders no element of its own.PopoverCloseA button that closes the popover (reason: 'close'); render swaps the element.PopoverDescriptionDescription of the popover (<p>); describes the content.PopoverTitleHeading of the popover (<h2>); labels the content.PopoverTriggerThe element that toggles the popover: a <button type="button"> with aria-haspopup="dialog", aria-expanded and, while open, aria-controls. render swaps the elem…
Interfaces
PopoverClosePropsPopoverContentPropsid is reserved: the trigger's aria-controls points at it.PopoverDescriptionPropsPopoverOpenChangeEventSecond argument of onOpenChange: frozen, allocated only when a callback is bound.PopoverPropsPopoverTitlePropsPopoverTriggerProps
Types
PopoverCloseRenderPropsPopoverOffsetPopoverOpenChangeReasonPopoverPlacementPopoverTriggerRenderPropsProps Popover.Trigger computes for its element (spread them in render).