0.0.1-alpha.3 • Published 2 years ago

@rendr-view/portal v0.0.1-alpha.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@rendr-view/portal

A wrapper around React.createPortal.

Installation

yarn add @rendr-view/portal

Props

export interface Props {
  children: React.ReactNode;
  className?: string;
  el?: string;
  id?: string;
}

children

The content to render inside the portal.

className

Optional className to be given to the portal container element. By default this is root-portal.

el

The HTML element of the portal container. By default this is div.

id

An ID to be given to the portal container. If a portal has an ID, any existing instance of a portal container with the same id will be replaced.

0.0.1-alpha.2

2 years ago

0.0.1-alpha.3

2 years ago

0.0.1-alpha.1

2 years ago

0.0.1-alpha.0

2 years ago