react-nepal-map
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/react-nepal-map package

1.0.2 • Public • Published

react-nepal-map

React component for Nepal Map

NPM JavaScript Style Guide

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
tokeyrun@gmail.com
Facebook

Support This Package

React Tutor @ Youtube

Channel Name: Buggged
Youtube
Website

License

MIT © keyrunpay

Readme

Keywords

none

Package Sidebar

Install

npm i react-nepal-map

Weekly Downloads

9

Version

1.0.2

License

MIT

Unpacked Size

2.75 MB

Total Files

7

Last publish

Collaborators

  • keyrunpay