npm.io
0.1.4 • Published 5 years ago

theme-icons

Licence
MIT
Version
0.1.4
Deps
0
Size
14 kB
Vulns
0
Weekly
0
Stars
2

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

License


Developed by José Ulisses

Keywords