Font Awesome Icon Picker Component For Vue.js

vue-fontawesome-picker is a Font Awesome icon picker that enables the user to select Font Awesome icons from a searchable popup picker window and insert a CSS and/or Unicode class into the input field.

vue icon picker, font awesome icons, vuetify icon picker, font awesome icon picker, font awesome icon picker npm

How to make use of it:

Install and download:

# Yarn 
$ yarn add vfa-picker 

# NPM 
$ npm install vfa-picker --save

1. To get started, be sure to download the latest Font Awesome Iconic fonts.

<link rel="stylesheet" href="/path/to/fontawesome/all.css" />

2. Install and import Font Awesome Icon Picker.

import Vue from "vue";
import VueFontAwesomePicker from "vfa-picker";

3. Register the component.

Vue.use(VueFontAwesomePicker);

4. Use the component.

<template>
  <vfa-picker is-both="true" v-bind.sync="category">
    <template v-slot:activator="{ on }">
      <input v-model="category.class" @click="on" placeholder="Icon Class" type="text" />
      <input v-model="category.unicode" @click="on" placeholder="Icon Unicode" type="text" />
    </template>
  </vfa-picker>
</template>
<script>
export default {
    name: "BasicBothExample",
    data() {
      return {
          category: {
              class: undefined,
              unicode: undefined
          }
      }
    }
}
</script>

5. Props.

{
isUnicode: {
  type: [Boolean, String],
  required: false,
  default: false
},
isBoth: {
  type: [Boolean, String],
  required: false,
  default: false
},
itemsPerPage: {
  type: Number,
  required: false,
  default: 36
},
closeOnContainerClick: {
  type: Boolean,
  required: false,
  default: true
},
width: {
  type: String,
  default: "80%"
},
height: {
  type: String,
  default: "70%"
},
value: {
  type: String
},
only: {
  type: Array,
  default() {
    return ["solid", "regular", "brands"];
  }
},
searchable: {
  type: [Boolean, String],
  default: true
}

6. Trigger an event when the icon changes.

this.$emit("input", {
  class: icon.class,
  unicode: icon.unicode
});

font awesome icon picker, vue-fontawesome-picker Plugin/Github


See Demo And Download

Official Website(minabtech): Click Here

This superior jQuery/javascript plugin is developed by minabtech. For extra advanced usage, please go to the official website.

Related Posts

bootstrap-dropdown-on-hover

[Animation] Bootstrap Multi-Level Responsive Dropdown Menu

Bootstrap-based multi-level dropdown navigation menu with cool animations. The dropdown on Hover is a jQuery plugin used to create Bootstrap multi-level scroll-triggered dropdown menus with CSS3 animations…

Google-Translate-Dropdown-Customize-With-Country-Flag

Google Translate Dropdown Customize With Country Flag | GT API

Flag google translates jQuery text that takes advantage of the Google Cloud Translation API to translate web content between languages by selecting a country from the dropdown…

Bootstrap-Fileinput

HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…

alert-confirm-prompt-attention-js

Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…

Bootstrap-4-Toast-Notification-Plugin

Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…

Leave a Reply

Your email address will not be published. Required fields are marked *