@rc-component/portal
React Portal Component
Last updated 3 months ago by zombiej .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @rc-component/portal 
SYNC missed versions from official npm registry.

rc-portal

React 18 supported Portal Component.

NPM version dumi build status Codecov npm download

Development

npm install
npm start
open http://localhost:8000

Feature

  • React life cycle support portal component

Install

rc-portal

Usage

import Portal from '@rc-component/portal';

const Demo = () => {
  return <Portal open>Hello World</Portal>;
};

export default Demo;

???? API

We use typescript to create the Type definition. You can view directly in IDE. But you can still check the type definition here.

Portal

Prop Description Type Default
getContainer Customize portal container element Element | () => Element document.body
open Show the portal boolean false
autoLock Lock screen scroll when open boolean false

Current Tags

  • 2.2.0                                ...           latest (3 months ago)

24 Versions

  • 2.2.0                                ...           3 months ago
  • 2.1.3                                ...           3 months ago
  • 2.1.2                                ...           4 months ago
  • 2.1.1                                ...           4 months ago
  • 2.1.0                                ...           4 months ago
  • 2.0.1                                ...           5 months ago
  • 2.0.0                                ...           a year ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 1.0.0-10                                ...           3 years ago
  • 1.0.0-9                                ...           4 years ago
  • 1.0.0-8                                ...           4 years ago
  • 1.0.0-7                                ...           4 years ago
  • 1.0.0-6                                ...           4 years ago
  • 1.0.0-5                                ...           4 years ago
  • 1.0.0-3                                ...           4 years ago
  • 1.0.0-2                                ...           4 years ago
  • 1.0.0-1                                ...           4 years ago
  • 1.0.0-0                                ...           4 years ago
Downloads
Today 0
This Week 12
This Month 22
Last Day 1
Last Week 10
Last Month 0
Dependencies (2)
Dev Dependencies (19)

Copyright 2013 - present © cnpmjs.org | Home |