vue-fontawesome-icon

๐Ÿบ Hi there, Font-awesome icons for Vue.js lovers <3
10,495 8
Install
npm install vue-fontawesome-icon
Latest Version:1.3.2
Vue:2
License:MIT
Last Updated:Oct 24, 2024
Links: GitHub  ·  npm
Maintainer: ajay1098

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

Prop Type Description
icon String Set the Font Awesome icon name (e.g., "home", "user", "file"). You can browse icons here.
size String Specify the size of the icon (e.g., "2", "3"), which corresponds to rem units.
color String Provide 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

Related Packages

@snickbit/fa-gen

Easily generate tree-shaken Font Awesome library loader files for Vue.js

1,797
vue-fa

Tiny FontAwesome component for Vue.js

26,271 24
awesome-vue-star-rating

A simple, highly customisable star rating component for Vue 2.x without any exte...

2,307 6
vue-awesome-icons

Vue Awesome is another awesome collection of open source outline icons

3,651 0
vue-fontawesome-css

A simple vue component for display icons with font-awesome css

2,249 0

Version History

Version Released Vue License
1.3.2 ^2.6.10 MIT
1.3.1 ^2.6.10 MIT
1.3.0 ^2.6.10 MIT
1.2.1 ^2.6.10 MIT
1.2.0 ^2.6.10 MIT