View as Markdown

API reference: @salmonui/overlays/popover

PopoverContentPropsinterface

import type { PopoverContentProps } from '@salmonui/overlays/popover';
interface PopoverContentProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role' | 'id'> {
    readonly children?: ReactNode;
    readonly ref?: Ref<HTMLDivElement> | undefined;
}

id is reserved: the trigger's aria-controls points at it.

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

The content element (role="dialog").