0.0.1 • Published 1 year 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
1 year ago
0.0.1-alpha.2
4 years ago
0.0.1-alpha.3
4 years ago
0.0.1-alpha.1
4 years ago
0.0.1-alpha.0
4 years ago