vue-remix-icons
Attention
remixicon now support Vue 3 officially, this package will continue sync upstream for Vue 2 users, but if you use Vue 3, better use official package!
vue-remix-icons
Remix Icon is a set of open source neutral style system symbols elaborately crafted for designers and developers.
Notics: this package will auto release a new feature version when then upstream package(remixicon) released, if you facing any issues, please open an issue to let me know.
Features
- Types ready
- Support Vue 2 and Vue 3
- Tree-Shaking
Install
npm i vue-remix-icons
Usage
Notice: for support Vue 2 & Vue 3 projects, the all imported icons is a Vue file, so you need to use this lib under the JS bundler like vite, webpack or other Vue framework.
<template>
<RiHomeLine />
</tempalte>
<script>
// tree-shaking
import { RiHomeLine } from "vue-remix-icons";
// if not, import the one you needed
import RiHomeLine from "vue-remix-icons/icons/ri-home-line.vue"
export default {
components: {
RiHomeLine,
},
}
</script>
See all icons here: http://remixicon.com/
Note that just change the usage from <i class="ri-home-line"></i> to import RiHomeLine .
Nuxt 3
Transpile vue-remix-icons, see #13.
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
build: {
transpile: ['vue-remix-icons'],
},
})
Details
<RiHomeLine />
Will render as:
<svg class="remixicon ri-home-line">...</svg>
Breaking Changes
v3.0.0
Generated file now kebab-case, reason see #10.
- import RiHomeLine from "vue-remix-icons/icons/RiHomeLine.vue"
+ import RiHomeLine from "vue-remix-icons/icons/ri-home-line.vue"
Credits
Sponsors
License
Apache-2.0 © 2nthony
Related Packages
Remix Icon is a set of open source neutral style system symbols elaborately craf...
Version History
| Version | Released | License |
|---|---|---|
| 3.17.0 | Apache-2.0 | |
| 3.16.0 | Apache-2.0 | |
| 3.15.0 | Apache-2.0 | |
| 3.14.0 | Apache-2.0 | |
| 3.13.0 | Apache-2.0 | |
| 3.12.0 | Apache-2.0 | |
| 3.11.0 | Apache-2.0 | |
| 3.10.0 | Apache-2.0 | |
| 3.9.0 | Apache-2.0 | |
| 3.8.0 | Apache-2.0 | |
| 3.7.0 | Apache-2.0 | |
| 3.6.0 | Apache-2.0 | |
| 3.5.0 | Apache-2.0 | |
| 3.4.0 | Apache-2.0 | |
| 3.3.0 | Apache-2.0 | |
| 3.2.0 | Apache-2.0 | |
| 3.1.0 | Apache-2.0 | |
| 3.0.1 | Apache-2.0 | |
| 3.0.0 | Apache-2.0 | |
| 2.0.3 | Apache-2.0 | |
| 2.0.2 | Apache-2.0 | |
| 2.0.1 | Apache-2.0 | |
| 2.0.0 | Apache-2.0 | |
| 1.2.0 | Apache-2.0 | |
| 1.1.1 | Apache-2.0 | |
| 1.1.0 | Apache-2.0 | |
| 1.0.1 | Apache-2.0 |