genshin-icon
v1.0.20-alpha2
Published
[![Build Status](https://ci.cchampou.me/api/badges/cchampou/genshin-icon/status.svg)](https://ci.cchampou.me/cchampou/genshin-icon)
Downloads
18
Readme
Genshin Icons
genshin-icons
is a set of React Components containing Genshin icons in SVG.
How to install
yarn add genshin-icons
or
npm install genshin-icons
How to use
import { Anemo } from 'genshin-icons';
const App = () => {
return (
<div>
<Anemo />
{/* You can specify color and size (in px) */}
<Anemo size="100" color="purple" />
{/* You can also specify size in % (for the width) */}
<Anemo size="30%" color="purple" />
</div>
);
}
Available components
- Anemo
- Cryo
- Dendro
- Electro
- Geo
- Hydro
- Pyro