UNPKG

@porsche-design-system/components-react

Version:

Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.

35 lines (34 loc) 1.81 kB
import type { BaseProps } from '../../BaseProps'; import type { SelectedAriaAttributes, PopoverAriaAttribute, PopoverDirection } from '../types'; export type PPopoverProps = BaseProps & { /** * Sets ARIA attributes on the popover panel to improve accessibility for screen readers. */ aria?: SelectedAriaAttributes<PopoverAriaAttribute>; /** * Sets the text content displayed inside the popover panel when it is open, providing contextual help or information. */ description?: string; /** * Sets the preferred direction for the popover to open relative to its trigger button. Falls back to the direction with the most available viewport space. * @default 'bottom' */ direction?: PopoverDirection; }; export declare const PPopover: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & { /** * Sets ARIA attributes on the popover panel to improve accessibility for screen readers. */ aria?: SelectedAriaAttributes<PopoverAriaAttribute>; /** * Sets the text content displayed inside the popover panel when it is open, providing contextual help or information. */ description?: string; /** * Sets the preferred direction for the popover to open relative to its trigger button. Falls back to the direction with the most available viewport space. * @default 'bottom' */ direction?: PopoverDirection; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLElement>>;