Skip to content

Type Alias: PopoverDOM ​

ts
type PopoverDOM = {
  arrow: HTMLElement | null;
  closeButton: HTMLButtonElement | null;
  description: HTMLElement | null;
  footer: HTMLElement | null;
  footerButtons: HTMLElement | null;
  nextButton: HTMLButtonElement | null;
  previousButton: HTMLButtonElement | null;
  progress: HTMLElement | null;
  title: HTMLElement | null;
  wrapper: HTMLElement;
};

The DOM of a rendered popover, handed to onPopoverRender. With the default DriverPopover every part is present; a custom popover component or a slot that omits a part leaves the corresponding key null.

Properties ​

PropertyType
arrowHTMLElement | null
closeButtonHTMLButtonElement | null
descriptionHTMLElement | null
footerHTMLElement | null
footerButtonsHTMLElement | null
nextButtonHTMLButtonElement | null
previousButtonHTMLButtonElement | null
progressHTMLElement | null
titleHTMLElement | null
wrapperHTMLElement

Released under the MIT License.