Socket
Book a DemoInstallSign in
Socket

@myxplor/icons

Package Overview
Dependencies
Maintainers
9
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@myxplor/icons

![screen shot 2018-05-09 at 10 51 44 pm](https://user-images.githubusercontent.com/9635/39811050-94aabf74-53db-11e8-920e-b0ac9c075138.png)

0.9.3
latest
npmnpm
Version published
Maintainers
9
Created
Source

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

FAQs

Package last updated on 14 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.