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

@fortawesome/free-solid-svg-icons

Package Overview
Dependencies
Maintainers
6
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fortawesome/free-solid-svg-icons

The iconic font, CSS, and SVG framework

  • 5.7.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2M
increased by31.49%
Maintainers
6
Weekly downloads
 
Created

What is @fortawesome/free-solid-svg-icons?

The @fortawesome/free-solid-svg-icons package provides scalable vector icons that can instantly be customized — size, color, drop shadow, and anything that can be done with the power of CSS. It is part of the Font Awesome icon library.

What are @fortawesome/free-solid-svg-icons's main functionalities?

Adding icons to a web project

This code sample demonstrates how to import an icon (in this case, the coffee icon) from the package and use it in a React component with the help of the FontAwesomeIcon component.

import { faCoffee } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';

<FontAwesomeIcon icon={faCoffee} />

Customizing icon size

This code sample shows how to customize the size of an icon using the 'size' prop, which accepts values like 'xs', 'lg', '6x', etc.

import { faSpinner } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';

<FontAwesomeIcon icon={faSpinner} size='3x' />

Animating icons

This code sample illustrates how to apply an animation to an icon, such as a spinning effect, by using the 'spin' prop.

import { faSpinner } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';

<FontAwesomeIcon icon={faSpinner} spin />

Layering and grouping icons

This code sample demonstrates how to layer multiple icons on top of each other and apply transformations such as shrinking to create a composite icon.

import { faCircle, faCheck } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon, FontAwesomeLayers } from '@fortawesome/react-fontawesome';

<FontAwesomeLayers>
  <FontAwesomeIcon icon={faCircle} />
  <FontAwesomeIcon icon={faCheck} transform='shrink-6' />
</FontAwesomeLayers>

Other packages similar to @fortawesome/free-solid-svg-icons

Keywords

FAQs

Package last updated on 28 Jan 2019

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