Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icon not display #15

Open
krupasavadiya opened this issue Jan 1, 2022 · 3 comments
Open

icon not display #15

krupasavadiya opened this issue Jan 1, 2022 · 3 comments

Comments

@krupasavadiya
Copy link

i am using
"feather-icons": "^4.28.0",
"vue-feather": "^2.0.0-rc.1",
"vue": "^3.2.26",
node.js 14

also in main.js

import VueFeather from 'vue-feather';

app.component(VueFeather.name, VueFeather);

and in my component this below the line
<vue-feather type="star"></vue-feather>

but this is not showing the star icon.
am I missing something?

@fengyuanchen
Copy link
Owner

I have no idea about this. Any more details?

@Solotov
Copy link

Solotov commented Dec 29, 2022

try calling:
feather.replace()
when your component is mounted.

@RC0D3
Copy link

RC0D3 commented Oct 24, 2023

I have some throuble, I'm new in Vue3, but searching in docs I found how to define components, then I adapt. Now it's working for me :)

import './bootstrap';

import { createApp, defineCustomElement } from 'vue';
import App from './App.vue';

import VueFeather from 'vue-feather';

const app = createApp(App);

app.mount("#app");
customElements.define('vue-feather', defineCustomElement(VueFeather));

Tehen you can use anywhere
<vue-feather type="star"></vue-feather>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants