Skip to content
R

react-portal

To make your life with React Portals easier

by miksuFree

#84in UI Libraries
0In stores

Description

react-portal is a React component that moves its children out of the normal component tree and renders them somewhere else, by default in do…

Highlights

  • Renders children outside the normal tree, by default in document.body
  • Uses React's portal API from version 16
  • Fallback for React 15
  • Target element can be chosen

Ratings & Reviews

No ratings yet

Be the first to rate react-portal.

People also visit

R

@rc-component/portal

React Portal Component

UI Libraries
Launch
R

react-relative-portal

React component for place dropdowns outside overflow: hidden; elements

UI Libraries
Launch
R

react-modal

Accessible modal dialog component for React

UI Libraries
Launch
R

react-overlays

Utilities for creating robust overlay components

UI Libraries
Launch
R

reoverlay

The missing solution for managing modals in React

UI Libraries
Launch
F

focus-trap-react

A React component that traps focus

UI Libraries
Launch

react-portal FAQ

What is react-portal for?

Modals, lightboxes, loading bars and other overlays that need to render outside their parent.

Where does it render by default?

Into document.body, according to the README.

Which React versions does it support?

It uses React 16's portal API, with a fallback for React 15.

Can I change the target?

Yes. The README says you can target an element other than document.body.

Is it free?

The listing shows the library as free.

Where is the source?

On GitHub under tajo/react-portal.

What are the best react-portal alternatives?

Popular alternatives to react-portal include @rc-component/portal, react-relative-portal and react-modal. See all react-portal alternatives

Developer Stuff

Badges