View as Markdown

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

Types