react-honduras

1.0.1 • Public • Published

React-Honduras

an SVG based map of Honduras as a React component.

Installation

yarn add react-honduras

or

npm install react-honduras

Usage

	<Honduras
		size={500}
		fill="white"
		stroke="black"
		onClick={({ target }) => {
			
		  alert(target.attributes.name.value);
		}}
		onMouseOver={({ target }) => {
		  const { attributes } = target;
			
		  attributes.stroke.value = strokeOnHover;
		  attributes.fill.value = fillOnHover;
		}}
			
		onMouseLeave={({ target }) => {
		  const { attributes } = target;
			
		  attributes.stroke.value = stroke;
		  attributes.fill.value = fill;
		}}
	/>

Made by José Muñoz

/react-honduras/

    Package Sidebar

    Install

    npm i react-honduras

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    9.28 MB

    Total Files

    33

    Last publish

    Collaborators

    • jdmg93