SVG icons of the 51 states of United States of America. The icons can be customized by adjusting its color, size, and other SVG properties.
- You can get individual SVG files from /icons folder.
- Alternatively, you can visit the home page ahuseyn.github.io/state-icons/ to copy SVG snippet and use directly.
- Install the library
npm install @state-icons/react
or
yarn add @state-icons/react
-
Use the US Postal Service (USPS) abbreviation for the state you want to add. You can find the list of the abbreviations here.
-
Import the icon and use it
import { MA } from "@state-icons/react";
<MA size={30} color="blue" />;
This library is MIT licensed.