Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@icons-pack/react-simple-icons
Advanced tools
Changelog
Readme
This package provides the Simple Icons 11.7.0 packaged as a set of React components.
Install the package in your project directory with:
// with yarn
yarn add @icons-pack/react-simple-icons
// with npm
npm add @icons-pack/react-simple-icons
// with pnpm
pnpm add @icons-pack/react-simple-icons
// with bun
bun add @icons-pack/react-simple-icons
TypeScript Support
You can use simpleicons.org to find a specific icon. When importing an icon, keep in mind that the names of the icons are upperCamelCase , for instance:
Material Design
is exposed as
{ SiMaterialdesign } from @icons-pack/react-simple-icons
azure devOps
is exposed as
{ SiAzuredevops } from @icons-pack/react-simple-icons
import { SiReact } from '@icons-pack/react-simple-icons';
function BasicExample() {
return <SiReact color='#61DAFB' size={24} />;
}
@icons-pack/react-simple-icons
provides a default title referring to the component name
The
<title>
element provides an accessible, short-text description of any SVG container element or graphics element.
import { SiReact } from '@icons-pack/react-simple-icons';
// title default "React"
function ChangeTitle() {
return <SiReact title='My title' color='#61DAFB' size={24} />;
}
Set color as default
to use the default color for each icon
import { SiReact } from '@icons-pack/react-simple-icons';
function DefaultColorExample() {
return <SiReact color='default' size={24} />;
}
Append Hex
to the icon name to use the default color as hex string
import { SiReact, SiReactHex } from '@icons-pack/react-simple-icons';
function DefaultColorExample() {
return <SiReact color={SiReactHex} size={24} />;
}
import { SiReact } from '@icons-pack/react-simple-icons';
function CustomStyles() {
return <SiReact className='myStyle' />;
}
.myStyle {
width: 35px;
height: 35px;
}
FAQs
This package provides the Simple Icons packaged as a set of React components.
The npm package @icons-pack/react-simple-icons receives a total of 48,125 weekly downloads. As such, @icons-pack/react-simple-icons popularity was classified as popular.
We found that @icons-pack/react-simple-icons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.