A simple icon collection for when you just need essential icons.
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>
}
}
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 |
Moon
Sun
FullMoon
Developed by José Ulisses