Core
@react-leaflet/core
React Leaflet core
Component Libraries
react-component
react
leaflet
map
@react-leaflet/core
Component Libraries
javascript
npm
frontend
open source
Stars
5.6k
Weekly
0
Open issues
48
Bundle
~60 kB
Installation
npm install @react-leaflet/coreCode example
import { Button } from "@react-leaflet/core";
export function Example() {
return (
<div className="flex gap-2">
<Button>Primary</Button>
<Button variant="outline">Secondary</Button>
</div>
);
}Pros & cons
Pros
- Actively maintained by Paul Le Cam
- 0 weekly downloads. Battle tested
- First-class TypeScript definitions
- Hippocratic-2.1 licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 48 open issues on GitHub