DEV Community

Narayan Adhikary
Narayan Adhikary

Posted on

1

Bootstrap Vue Font-Awesome Icon Picker

Bootstrap Vue Font-Awesome Icon Picker

This is a simple vuejs plugin for picking font-awesome 5 Icons.
It Supports Font Awesome 5 Icons.

Installation

yarn add bootstrap-vue-font-awesome-picker  
or  
npm install bootstrap-vue-font-awesome-picker
Enter fullscreen mode Exit fullscreen mode

Project setup

yarn install 
Enter fullscreen mode Exit fullscreen mode

Compiles and hot-reloads for development

yarn serve
Enter fullscreen mode Exit fullscreen mode

Compiles and minifies for production

yarn build
Enter fullscreen mode Exit fullscreen mode

Lints and fixes files

yarn lint
Enter fullscreen mode Exit fullscreen mode

Quick start

Several quick start options are available:

  • Download the latest release.
  • Clone the repo: git clone https://github.com/wovosoft/bootstrap-vue-font-awesome-picker.git
  • Install with npm: npm install bootstrap-vue-font-awesome-picker
  • Install with yarn: yarn add bootstrap-vue-font-awesome-picker

Status

npm version

What's included

Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations. You'll see something like this:

bootstrap-vue-font-awesome-picker
└── dist/
    ├── css/
    │   ├── app.css
    └── js/
        ├── app.js
        ├── app.map
        ├── chunk-vendors.js
        ├── chunk-vendors.js.map
Enter fullscreen mode Exit fullscreen mode

Documentation

You Can Use the Plugin as a compnent directly to your vuejs application as the example written below.

No need to import additional CSS, the plugin will load the required CSS styles automatically.


<template>
    <div>
        <font-awesome-picker v-model="icon"></font-awesome-picker>
    </div>
</template>

<script>
    import FontAwesomePicker from "bootstrap-vue-font-awesome-picker";

    export default {
        name: "MyComponent",
        components: {
            FontAwesomePicker
        },

        data() {
            return {
                icon: "fas fa-user-cog"
            };
        }
    }
</script>

Enter fullscreen mode Exit fullscreen mode

If you want to use it as a global plugin, then in your app.js use it as written below.

import Vue from "vue";
import FontAwesomePicker from "bootstrap-vue-font-awesome-picker";
Vue.use(FontAwesomePicker);
new Vue({
    el: '#main',
    router,
    store,
    template: '<Main/>',
    components: {
        Main
    },
}
Enter fullscreen mode Exit fullscreen mode

Another Method is,

import Vue from "vue";
import FontAwesomePicker from "bootstrap-vue-font-awesome-picker";

new Vue({
    el: '#main',
    router,
    store,
    template: '<Main/>',
    components: {
        Main,
        FontAwesomePicker
    },
}
Enter fullscreen mode Exit fullscreen mode

Creators

Narayan Adhikary

Copyright and license

Code and documentation copyright 2015-2020 the [Wovosoft Authors] . Code released under the MIT License.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay