1.0.1 • Published 4 years ago
iran-map-selector v1.0.1
iran-map-selector
a simple component for province select in Iran map built with React js.
Installation
npm install --save iran-map-selectoror
yarn add iran-map-selectorUsage
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"
/>
);
}