Description
rc-new-window is a React component that shows content in a separate popup browser window. You place it where you want the window to open and pass either a url or your own children as the popup's content. Props set the popup's name, title, width and height, and the top position. By default it copies the styles of the main window into the popup, so the content keeps its look. Callbacks tell your code when the window opens, when it closes, and when the browser blocks window.open. For finer control, init functions let you choose the popup's inner and outer position and size. It is a port of the older react-new-window package and is published on npm under the Apache 2.0 license. The repository has a live example page and an API reference that covers every prop.…
Highlights
- Shows React content in a popup browser window
- Use a url or your own children as the popup content
- Copies main window styles into the popup by default
- Callbacks for open, close and blocked popups
- Set popup size and position from props
Ratings & Reviews
No ratings yet
Be the first to rate rc-new-window.
People also visit
react-native-popover-view
A <Popover /> component for react-native iOS, Android, and Web
rc-new-window FAQ
What does rc-new-window do?
It shows React content in a separate popup browser window. You place the component where the window should open, and it manages the popup for you.
How do I install it?
It is published on npm as rc-new-window. The README covers installation and usage and links to a live example.
Is it free?
Yes. It is released under the Apache License 2.0.
Which props can I set?
The url or children for the content, plus name, title, width, height, copyStyles and top, and init functions for the popup's inner and outer position.
What happens if the browser blocks the popup?
An onBlock callback runs when window.open fails, so your code can respond to it.
What are the best rc-new-window alternatives?
Popular alternatives to rc-new-window include react-popup, @rc-component/portal and react-modal. See all rc-new-window alternatives




















