0.0.1 • Published 7 months ago
@rendr-view/portal v0.0.1
@rendr-view/portal
A wrapper around React.createPortal.
Installation
yarn add @rendr-view/portalProps
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
7 months ago
0.0.1-alpha.2
3 years ago
0.0.1-alpha.3
3 years ago
0.0.1-alpha.1
3 years ago
0.0.1-alpha.0
3 years ago