Portal
@rc-component/portal
React Portal Component
Component Libraries
react
react-component
react-portal
@rc-component/portal
Component Libraries
javascript
npm
frontend
open source
ui
Stars
27
Weekly
2.4M
Open issues
13
Bundle
~25 kB
Installation
npm install @rc-component/portalCode example
import { Button } from "@rc-component/portal";
export function Example() {
return (
<div className="flex gap-2">
<Button>Primary</Button>
<Button variant="outline">Secondary</Button>
</div>
);
}Pros & cons
Pros
- Actively maintained by smith3816@gmail.com
- 2.4M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 13 open issues on GitHub