0.1.0 • Published 10 months ago

@tabula/portal-root-for v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

@tabula/portal-root-for

Allows to get or create portal root.

Installation

Use the package manager pnpm to install @tabula/portal-root-for.

pnpm add @tabula/portal-root-for

You can use npm or yarn too.

Usage

import { portalRootFor } from '@tabula/portal-root-for';

const root = portalRootFor({ id: 'my-portal' });

You can provide optional className to automatically add class attribute to the root element.

import { portalRootFor } from "@tabula/portal-root-for";

const root = portalRootFor({ id: 'my-portal', className: 'my-class' });

License

This project is ISC licensed.

0.1.0

10 months ago

0.1.0-next.0

10 months ago