1.0.2 • Published 2 years ago
iran-map-selector v1.0.2
iran-map-selector
a simple component for province select in Iran map built with React js
.
Installation
npm install --save iran-map-selector
or
yarn add iran-map-selector
Usage
import React from "react";
import MapSelector from "./package/MapSelector";
export default function Example() {
return (
<MapSelector
hoverColor={"yellow"}
onSelect={(selectedProvince) => {
console.log(selectedProvince);
}}
containerClassName={"containerClassName"}
selectedItems={["Tehran", "Kerman", "Alborz"]}
selectedItemColor="yellow"
/>
);
}