# vuexp-fonticon

> VueXP Font Icon Loader

Latest version **0.2.0** (published 2019-09-10) · 0 weekly downloads

## Install

```sh
npm install vuexp-fonticon
pnpm add vuexp-fonticon
yarn add vuexp-fonticon
bun add vuexp-fonticon
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2019-09-10 |
| First published | 2019-06-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | mylmz10 |

## Links

- npm: https://www.npmjs.com/package/vuexp-fonticon
- Repository: https://github.com/mylmz10/vuexp-fonticon
- Homepage: https://github.com/mylmz10/vuexp-fonticon#readme
- Issues: https://github.com/mylmz10/vuexp-fonticon/issues
- npm.io page: https://npm.io/package/vuexp-fonticon

## Dependencies (1)

- [nativescript-akylas-fonticon](https://npm.io/package/nativescript-akylas-fonticon.md) 2.0.6

## Recent versions

- 0.2.0 (latest) — 2019-09-10
- 0.1.0 — 2019-06-10

## README

# VueXP Fonticon

Use custom font icon collections seamlessly with VueXP.

## Install the vuexp-fonticon plugin

```
npm install vuexp-fonticon --save
```

## Add CSS

Import your fonticon's font files (normally a .ttf, TrueType Font) into fonts. FontAwesome, for example, has a font file called fontawesome-webfont.ttf.

Add a line to styles.scss to set the fonticon's base class:

```
@font-face {
  font-family: "FontAwesome";
  font-weight: normal;
  font-style: normal;
  src: url("/fonts/fontawesome-webfont.ttf");
}

.fa {
  font-family: FontAwesome, fontawesome-webfont;
}

.ion {
  font-family: Ionicons, ionicons;
}
```

## Initialize the plugin

In main.js, add the following snippet:

```
import VxpFontIcon from "vuexp-fonticon";

const FontIcons = {
  paths: {
    fa: "./assets/styles/font-awesome.css",
    ion: "./assets/styles/ionicons.css"
  }
};

Vue.use(VxpFontIcon, FontIcons);
```

## Use the fonticons

```
<VxpLabel class="fa" :text="'fa-eye' | fonticon" />
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

---
_Source: https://npm.io/package/vuexp-fonticon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
