1.0.11 • Published 1 year ago

react-iraq-component v1.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-iraq-component

Alt Text

react-iraq-component Provides you with an SVG of Iraq map with the ability to highlight different provinces in different colors.

Installation

NPM

npm install react-iraq-component

Yarn

yarn add react-iraq-component

Usage

import { IraqMap } from "react-iraq-component";

const MyComponent = () => {
  return (
    <IraqMap
      data={[
        {
          name: "baghdad", // baghdad will be highlighted in red.
          color: "red",
        },
      ]}
    />
  );
};

export default MyComponent;

Props

PropDefaultDescription
DataRequiredAn array of objects { name: IProvincesNames, color: string } to highlight a province.
height100%The height of the map component.
width100%The width of the map component.
backgroundColor#88a4bcThe color of provinces which are not highlighted.
classNameOptional
1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago