Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@cloudflare/component-icon
Advanced tools
Cloudflare Icon Component
Installation with yarn is recommended
$ yarn add @cloudflare/component-icon
import React from 'react';
import { Icon } from '../../src';
import { createComponent } from '@cloudflare/style-container';
const ColorWrapper = createComponent(
() => ({
backgroundColor: '#f1f1f1',
paddingTop: '10px',
paddingBottom: '10px',
paddingLeft: '15px',
maxWidth: 750,
display: 'block'
}),
'span'
);
const TextWrapper = createComponent(
() => ({
paddingRight: '20px',
paddingLeft: '5px'
}),
'span'
);
const IconComponent = () => (
<div>
<p>Types:</p>
<p>
<Icon label="caret-down" type="caret-down" />
<Icon label="caret-left" type="caret-left" />
<Icon label="caret-right" type="caret-right" />
<Icon label="caret-up" type="caret-up" />
<Icon label="resize-horizontal" type="resize-horizontal" />
<Icon label="reorder" type="reorder" />
<Icon label="forward" type="forward" />
<Icon label="backward" type="backward" />
<Icon label="left" type="left" />
<Icon label="right" type="right" />
<Icon label="collapse" type="collapse" />
<Icon label="edgeworker" type="edgeworker" />
<Icon label="expand" type="expand" />
<Icon label="retarget" type="retarget" />
<Icon label="linkedin" type="linkedin" />
<Icon label="twitter" type="twitter" />
<Icon label="google-plus" type="google-plus" />
<Icon label="facebook" type="facebook" />
<Icon label="filter" type="filter" />
<Icon label="calendar" type="calendar" />
<Icon label="file" type="file" />
<Icon label="clipboard" type="clipboard" />
<Icon label="drive" type="drive" />
<Icon label="speech" type="speech" />
<Icon label="flowchart" type="flowchart" />
<Icon label="flowchart-alt" type="flowchart-alt" />
<Icon label="hamburger" type="hamburger" />
<Icon label="list" type="list" />
<Icon label="gear" type="gear" />
<Icon label="chart" type="chart" />
<Icon label="help" type="help" />
<Icon label="info-sign" type="info-sign" />
<Icon label="ok-sign" type="ok-sign" />
<Icon label="exclamation-sign" type="exclamation-sign" />
<Icon label="refresh" type="refresh" />
<Icon label="time" type="time" />
<Icon label="sad" type="sad" />
<Icon label="happy" type="happy" />
<Icon label="minus" type="minus" />
<Icon label="ok" type="ok" />
<Icon label="pause" type="pause" />
<Icon label="plus" type="plus" />
<Icon label="remove" type="remove" />
<Icon label="search" type="search" />
<Icon label="lock" type="lock" />
<Icon label="shield" type="shield" />
<Icon label="spectrum" type="spectrum" />
<Icon label="upload" type="upload" />
<Icon label="wrench" type="wrench" />
<Icon label="bolt" type="bolt" />
<Icon label="user" type="user" />
<Icon label="stream" type="stream" />
<Icon label="add" type="add" />
</p>
<p>Sizes:</p>
<p>
<Icon label="2x" size="2x" type="gear" />
<TextWrapper>2x</TextWrapper>
<Icon label="2.5x" size="2.5x" type="gear" />
<TextWrapper>2.5x</TextWrapper>
<Icon label="3x" size="3x" type="gear" />
<TextWrapper>3x</TextWrapper>
<Icon label="3.5x" size="3.5x" type="gear" />
<TextWrapper>3.5x</TextWrapper>
<Icon label="4x" size="4x" type="gear" />
<TextWrapper>4x</TextWrapper>
</p>
<p>Colors:</p>
<p>
<ColorWrapper>
<Icon label="default" size="2x" type="search" color="default" />
<TextWrapper>Default</TextWrapper>
<Icon label="primary" size="2x" type="caret-right" color="primary" />
<TextWrapper>Primary</TextWrapper>
<Icon label="success" size="2x" type="ok" color="success" />
<TextWrapper>Success</TextWrapper>
<Icon label="warning" size="2x" type="info-sign" color="warning" />
<TextWrapper>Warning</TextWrapper>
<Icon label="danger" size="2x" type="exclamation-sign" color="danger" />
<TextWrapper>Danger</TextWrapper>
<Icon label="black" size="2x" type="remove" color="black" />
<TextWrapper>Black</TextWrapper>
<Icon label="white" size="2x" type="shield" color="white" />
<TextWrapper>White</TextWrapper>
</ColorWrapper>
</p>
</div>
);
export default IconComponent;
FAQs
Cloudflare Icon Component
The npm package @cloudflare/component-icon receives a total of 21,855 weekly downloads. As such, @cloudflare/component-icon popularity was classified as popular.
We found that @cloudflare/component-icon demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.