Skip to content
R

react-usa-map

React component with all USA States with customizable options

by gabidavilaFree

#1007in UI Libraries
0In stores

Description

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…

Highlights

  • SVG map of all US states, including DC, Alaska and Hawaii
  • No D3 needed
  • Click handler for each state
  • Per-state fill customization
  • Albers projection

Ratings & Reviews

No ratings yet

Be the first to rate react-usa-map.

People also visit

V

@vnedyalk0v/react19-simple-maps

An svg map chart component built exclusively for React 19+

UI Libraries
Launch
V

visited-map

An SVG world map that highlights the countries you've visited

UI Libraries
Launch
R

react-google-maps

React.js Google Maps integration component

UI Libraries
Launch
R

React Simple Maps

Composable SVG map charts for data visualization in React

Design
Launch
G

google-map-react

Universal google map react component

UI Libraries
Launch
S

shadcnmaps

Beautiful map components powered by pure SVG

UI Libraries
Launch

react-usa-map FAQ

What is react-usa-map?

A React component that draws an SVG map of the United States with clickable states.

How do I install it?

Run yarn add react-usa-map or npm install react-usa-map --save. It needs React 16.13.1 or higher.

Do I need D3?

No. The README says D3 is not needed.

How do I color the states?

Use the defaultFill prop for a base color, or the customize option to set the fill of individual states.

Where does the map come from?

The README says it is sourced from Wikimedia under a Creative Commons Attribution-Share Alike 3.0 Unported license.

What are the best react-usa-map alternatives?

Popular alternatives to react-usa-map include @vnedyalk0v/react19-simple-maps, visited-map and react-google-maps. See all react-usa-map alternatives

Developer Stuff

Badges