0.9.3 • Published 4 years ago

@myxplor/icons v0.9.3

Weekly downloads
-
License
Unlicense
Repository
-
Last release
4 years ago

Icons

screen shot 2018-05-09 at 10 51 44 pm

All icons are svg's that are rendered by react. This might sounds like we're just trying to be super fancy, but this gives us some advantages.

SVG is inline in the page, which allows us to control the size, colour, stroke (border) thickness via css.

Passing props

Given the icons are react components, we can pass props to control which shape we want.

  • title string, used in the svg title. Each icon has their own default title. Eg: the loading icon has a title of "Loading"
  • large - boolean, makes the icon larger by 25%. Default false
  • left - boolean. Moves all padding to the righthand side, for when is display left aligned. (eg: in a button)
  • className - supply your own classname
  • onClick - function. When supplied will wrap an <a> around the icon, so is rendered as a link

For example, the VisibleIcon has two states where the "eye" is open and when it is closed. By default the icon is set to closed. To use the open state pass open as a prop.

<VisibleIcon open />
<VisibleIcon />

screen shot 2018-03-02 at 6 19 54 pm

Not all icons have states

0.9.3

4 years ago

0.0.3-alpha.6

5 years ago

0.0.3-alpha.5

5 years ago

0.0.3-alpha.4

5 years ago

0.0.3-alpha.3

5 years ago

0.0.3-alpha.1

5 years ago

0.0.0-alpha.48

5 years ago

0.0.0-alpha.42

5 years ago

0.0.0-alpha.41

5 years ago

0.0.0-alpha.40

5 years ago

0.0.0-alpha.39

5 years ago

0.0.0-alpha.38

5 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.5

6 years ago

0.7.4

6 years ago

0.7.3

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.0.1-4

6 years ago