View as Markdown

API reference: @salmonui/overlays/popover

PopoverContentcomponent

import { PopoverContent } from '@salmonui/overlays/popover';
function PopoverContent(props: PopoverContentProps): ReactNode;

The 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.Title and described by Popover.Description when they are rendered and no aria-label / aria-labelledby is given.

Props: PopoverContentProps

PopoverContent props (2)
NameSignatureDescription
childrenoptionalreadonly children?: ReactNode;
refoptionalreadonly ref?: Ref<HTMLDivElement> | undefined;

The content element (role="dialog").