Portal
A wrapper for rendering components in React portals.Installation
| Install | yarn add @atlaskit/portal |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/portal, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Props
| Description | No description. |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | Specify the mount strategy: useEffect or useLayoutEffect. Note: UseLayoutEffect can lead to performance issues and is discouraged. |
|---|---|
| Default | "effect" |
| Type | "effect" | "layoutEffect" |
| Description | No description. |
|---|---|
| Default | 0 |
| Type | string | number |