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
1
Weekly
0
Open issues
0
Bundle
~60 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
- 0 weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 0 open issues on GitHub