React Kapsule
react-kapsule
A React wrapper for Kapsule-style web components
Component Libraries
react
wrapper
kapsule
web
component
react-kapsule
Component Libraries
javascript
npm
frontend
Stars
9
Weekly
673k
Open issues
2
Bundle
~25 kB
Installation
npm install react-kapsuleCode example
import { Button } from "react-kapsule";
export function Example() {
return (
<div className="flex gap-2">
<Button>Primary</Button>
<Button variant="outline">Secondary</Button>
</div>
);
}Pros & cons
Pros
- Actively maintained by Vasco Asturiano
- 673k 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
- 2 open issues on GitHub