0.1.4 • Published 3 years ago
theme-icons v0.1.4
Theme Icons
A simple icon collection for when you just need essential icons.
Installation and How to use
In your react project, use:
npm i theme-icons
-- or --
yarn add theme-icons
example usage:
import { Moon } from "theme-icons";
function ThemeSwitch() {
render() {
return <button> <Moon /> Switch Theme? </button>
}
}
Props
example usage
import { Moon } from "theme-icons";
function ThemeSwitch() {
render() {
return <button><Moon color="#C4C4C4" details="#E5E5E5" /> </button>
}
}
Key | Default | Type | Notes |
---|---|---|---|
color | white | string | use to set main icon color |
details | undefined | string | use to set secondary color if it exists |
size | 22 | number |
Icons avaliable
Moon
Sun
FullMoon