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

@fortawesome/free-regular-svg-icons

Package Overview
Dependencies
Maintainers
7
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fortawesome/free-regular-svg-icons

The iconic font, CSS, and SVG framework

  • 6.7.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
691K
decreased by-18.36%
Maintainers
7
Weekly downloads
 
Created

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

@fortawesome/free-regular-svg-icons is a package that provides a collection of free regular icons from Font Awesome. These icons can be used in web applications to enhance the user interface with visually appealing and consistent iconography.

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

Importing Icons

This feature allows you to import specific icons from the package. In this example, the 'faAddressBook' icon is imported for use in a project.

import { faAddressBook } from '@fortawesome/free-regular-svg-icons';

Using Icons with React

This feature demonstrates how to use the imported icons in a React component. The 'FontAwesomeIcon' component is used to render the 'faAddressBook' icon within a React application.

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

function App() {
  return (
    <div>
      <FontAwesomeIcon icon={faAddressBook} />
    </div>
  );
}

Using Icons with Vue

This feature shows how to use the icons in a Vue.js application. The 'library.add' method is used to add the 'faAddressBook' icon to the library, and the 'FontAwesomeIcon' component is registered for use in Vue components.

import { library } from '@fortawesome/fontawesome-svg-core';
import { faAddressBook } from '@fortawesome/free-regular-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';

library.add(faAddressBook);

export default {
  components: {
    FontAwesomeIcon
  }
};

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

Keywords

FAQs

Package last updated on 18 Nov 2024

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