Open source alternatives to react-usa-map
200 open source apps like react-usa-map, closest match first.
Top picks
- R
React Simple Maps
LaunchReact Simple Maps is a library for building SVG map charts in React for data visualization. It is made of a set of small helper components that you compose the way you would compose any other React layout, so a map chart is closer to ordina
- G

google-map-react
Launchgoogle-map-react is a React component for Google Maps that lets you render any React component on the map. It is written as a thin layer over a small part of the Google Maps API, so your markers and overlays are ordinary React components wi
- S

shadcnmaps
Launchshadcnmaps is a set of interactive SVG map components for React, made for shadcn/ui projects. It has more than 170 components covering countries, continents and US states. Each region is an SVG path that can be styled with Tailwind CSS, and
- R

react-map-gl
Launchreact-map-gl is a React library that wraps Mapbox GL JS and MapLibre GL JS with a React-friendly API. The project describes itself as a suite of React components that provides a React interface for mapbox-gl or maplibre-gl, and it is part o
- R

react-mapbox-gl
Launchreact-mapbox-gl is a React wrapper for mapbox-gl-js, the Mapbox GL JavaScript library for interactive maps. It gives you two kinds of components. Proxy components sit between React and the Mapbox API. They include the map component ReactMap
- M
mapcn
Launchmapcn is a collection of ready-to-use map components for React, built on MapLibre GL and styled with Tailwind CSS. The components are designed to be accessible and customisable, and they work with shadcn/ui. You add a map with one command,
More like react-usa-map

@alisowski/color-picker
React color pickers from Sketch, Photoshop, Chrome, Github, Twitter & more
About react-usa-map

react-usa-map
React component with all USA States with customizable options
react-usa-map is a React component that renders an SVG map of the United States, with every state, including DC, Alaska and Hawaii. It is a simple, customizable map for web pages, and it does not need D3. The map uses the Albers projection. Each state is a clickable path, and the component requires an onClick handler. Each path also gets the state's abbreviation with a state class, so you can style states with CSS. Optional props set a title for the svg element, a width and height as numbers without px, a defaultFill color for all states, and a customize option that sets the fill of individual states. The package requires React 16.13.1 or higher and is installed with Yarn or npm. The README includes a usage example with the optional props and a stylesheet, and it links a live demo and the demo's code on GitHub. The map is sourced from Wikimedia under a Creative Commons Attribution-Share Alike 3.0 Unported license, and the package is inspired by react-us-state-map, whose SVG class system it builds on. It is MIT licensed, and contributions are welcome as pull requests.
- Price
- Free
- Made by
- gabidavila
- Category
- UI Libraries
- Website
- github.com/gabidavila/react-usa-map























