Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @react-md/portal

Index

Type aliases

PortalInto: (() => HTMLElement | null) | HTMLElement | string | null

This is the type for how a portal can be rendered into another element. This can either be a function that returns the HTMLElement, an HTMLElement, or a document.querySelector string.

Functions

  • Portal(__namedParameters: PortalProps): ReactElement | null
  • This component is a simple wrapper for the createPortal API from ReactDOM that will just ensure that null is always returned for server side rendering as well as a "nice" way to choose specific portal targets or just falling back to the document.body.

    Parameters

    Returns ReactElement | null

Generated using TypeDoc