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

vue-fontawesome-icon

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-fontawesome-icon

🍺 Hi there, Font-awesome icons for Vue.js lovers <3

  • 1.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Vue FontAwesome Icons

The Ultimate Font Awesome Solution for Vue.js Developers!

NPM Version Total Downloads JavaScript Style Guide

Easily integrate Font Awesome icons into your Vue.js applications with this flexible and lightweight component!

📦 Installation

Install the necessary packages using npm:

npm install vue-fontawesome-icon --save
npm install font-awesome --save

🚀 Quick Start Guide

  • Step 1: Import Font Awesome and register the component globally in your main.js (or similar entry file):
import Vue from 'vue';
import 'font-awesome/css/font-awesome.min.css'; // Import Font Awesome CSS

// Register the Vue FontAwesome component globally
Vue.component('VueFontawesome', require('vue-fontawesome-icon/VueFontawesome.vue').default);

new Vue({
  render: h => h(App),
}).$mount('#app');
  • Step 2: Use the component in your templates:
<vue-fontawesome icon="file" size="2" color="red"></vue-fontawesome>

📚 Features & Highlights

  • Simple icon usage: Just use the Font Awesome icon name, e.g., icon="file". No need to add the full class like fa fa-file! 🚫

  • Fully customizable: Adjust the size and color of the icons easily with props.

💡 Props

PropTypeDescription
iconStringSet the Font Awesome icon name (e.g., "home", "user", "file"). You can browse icons here.
sizeStringSpecify the size of the icon (e.g., "2", "3"), which corresponds to rem units.
colorStringProvide any valid CSS color value (e.g., "red", "yellow", "#ffffff", "#ff0000").

🤝 Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Thanks ❤️

License

MIT © License

Author

Made with ❤️ by Ajay Marathe

Keywords

FAQs

Package last updated on 06 Oct 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