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
525
Weekly
3.0M
Open issues
7
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
- 3.0M 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
- 7 open issues on GitHub