Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sparkmeter/buefy-feather-icon

Integrate the vue-feather icon component with the Buefy component framework
https://github.com/sparkmeter/buefy-feather-icon

bulma feather-icons hacktoberfest icons vue vuejs

Last synced: about 2 months ago
JSON representation

Integrate the vue-feather icon component with the Buefy component framework

Awesome Lists containing this project

README

        

[![](https://img.shields.io/npm/v/buefy-feather-icon)](https://www.npmjs.com/package/buefy-feather-icon)

## buefy-feather-icon

Use [vue-feather](https://www.npmjs.com/package/vue-feather) icon components in [Buefy](https://www.npmjs.com/package/buefy).

```vue
Details
```

## Installation

```shell
npm install buefy-feather-icon
```

Then, add the following to your application's entrypoint:

```js
import Vue from "vue";
import Buefy from "buefy";
import "buefy/dist/buefy.css";
import VueFeather from "vue-feather";
import BuefyFeatherIcon from "buefy-feather-icon";

Vue.use(VueFeather);

// Add the following fields to your Buefy configuration
Vue.use(Buefy, {
defaultIconPack: "feather-icons",
defaultIconComponent: BuefyFeatherIcon,
});

// Proceed with application initialization
new Vue(/** **/).$mount("#app");
```

## Configuration

Buefy uses the names of Font Awesome icons for its bundled components. For
example, it will use `times` when attempting to render a close _x_. The Feather
icon collection uses a different set of names for some of these. This library
ships with a basic set of mappings from Font Awesome to Feather. However, it is
not complete (PRs welcome!). To that end, if you wish to fill a gap, or
override any of the builtins icons, add the following configuration to your
entrypoint.

```js
Vue.use(BuefyFeatherIcon, {
aliases: {
"font-awesome-icon-name": "feather-icon-name",
},
});
Vue.use(Buefy, {
defaultIconPack: "feather-icons",
defaultIconComponent: BuefyFeatherIcon,
});
```