Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cf-component-icon

Package Overview
Dependencies
Maintainers
11
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-component-icon

Cloudflare Icon Component

  • 2.1.0
  • npm
  • Socket score

Version published
Weekly downloads
990
increased by188.63%
Maintainers
11
Weekly downloads
 
Created
Source

cf-component-icon

Cloudflare Icon Component

Installation

$ npm install cf-component-icon

Usage

import React from 'react';
import Icon, { TYPES, SIZES } from 'cf-component-icon';

const IconComponent = () => (
  <div>
    <p>Types:</p>
    <p>
      {TYPES.map(type => <Icon label={type} type={type} key={type} />)}
    </p>

    <p>Sizes:</p>
    <p>
      {SIZES.map(size => (
        <Icon label={size} type="gear" size={size} key={size} />
      ))}
    </p>

    <p>Border:</p>
    <p><Icon label="border" type="gear" border /></p>

    <p>Spin:</p>
    <p><Icon label="border" type="gear" spin /></p>

    <p>Muted:</p>
    <p><Icon label="border" type="gear" muted /></p>

    <p>White:</p>
    <p><Icon label="border" type="gear" white /></p>
  </div>
);

export default IconComponent;

Other options:

<Icon border spin muted white/>

If you specifically don't want to use a label then you must pass false.

FAQs

Package last updated on 20 Mar 2017

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc