next-nepal-map
v1.0.4
Published
NextJS component for Nepal Map
Downloads
8
Readme
react-nepal-map
React component for Nepal Map
Install
npm install --save react-nepal-map
Live Demo
https://keyrunpay.github.io/react-nepal-map
Usage
import React from 'react'
import { ProvinceMap, ZonalMap, DistrictMap } from 'react-nepal-map'
const App = () => {
return (
<div>
<ProvinceMap
hoverColor='red'
stroke='#000'
provinceColor=['red', 'green', 'blue']
strokeWidth={1}
onMapClick={(val) => console.log(val)}
/>
<ZonalMap
hoverColor='red'
onMapClick={(val) => console.log(val)}
stroke='#000'
strokeWidth={1}
/>
<DistrictMap
hoverColor='red'
stroke='#000'
strokeWidth={1}
onMapClick={(val) => console.log(val)}
/>
</div>
)
}
export default App
TypeScript
TypeScript type definition was add to the DefinitelyTyped repository
contributed by: ashiishme
npm install --save @types/react-nepal-map
Contributors
About Author
Kiran Neupane [email protected] Facebook
Support This Package
React Tutor @ Youtube
Channel Name: Buggged Youtube Website
License
MIT © keyrunpay