1.0.0-beta.3 • Published 10 months ago

@rational/portal v1.0.0-beta.3

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Portal

The Portal component is a declarative way to use createPortal in React, which allows you to render a component into a DOM node that exists outside the DOM hierarchy of the parent component.

Features

  • Next.js Support: The Portal component works with Next.js appDir and React Server Component out of the box. No rehydration issues.

Installation

npm install @rational/portal
pnpm add @rational/portal
yarn add @rational/portal

Usage

import { Portal } from '@rational/portal';

<Portal>
  <div>Portal content</div>
</Portal>;
1.0.0-beta.3

10 months ago

1.0.0-beta.2

10 months ago

1.0.0-beta.1

10 months ago