Socket
Socket
Sign inDemoInstall

auto-ikons

Package Overview
Dependencies
8
Maintainers
1
Versions
378
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    auto-ikons

prototype - collection of SVG icon components for React


Version published
Weekly downloads
122
decreased by-68.39%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

auto-ikons

prototype - collection of SVG icon components for React

NPM JavaScript Style Guide

Install

npm install --save auto-ikons

Usage

the only export is an object called AutoIcons:

import React, { Component } from 'react'
import { AutoIcons } from 'auto-ikons'

const keys = Object.keys(AutoIcons)

export default class App extends Component {
  render() {
    return (
      <div
        style={{
          margin: 40,
        }}
      >
        <h1>Modern React component module</h1>
        <hr />
        {keys.map((key, index) => {
          const Icon = AutoIcons[key]
          return (
            <div
              key={`icon-${index}`}
              style={{
                height: 48,
                display: 'flex',
                flexDirection: 'row',
                alignItems: 'center',
              }}
            >
              <Icon style={{ width: 24, height: 24 }} />
              <span style={{ marginLeft: 20 }}>{key}</span>
            </div>
          )
        })}
      </div>
    )
  }
}

License

MIT © eswat2

FAQs

Last updated on 22 Nov 2021

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc