0.1.4 • Published 3 years ago

theme-icons v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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>
  }
}
KeyDefaultTypeNotes
colorwhitestringuse to set main icon color
detailsundefinedstringuse to set secondary color if it exists
size22number

Icons avaliable

  • Moon
  • Sun
  • FullMoon

License


0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago