-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
Lucide Vue Package #174
Lucide Vue Package #174
Conversation
@ericfennis I was trying using the vue package, it doesn't add (forget about the second alert, see the first one) <success-icon
v-if="type === 'success'"
class="alert-icon alert-icon-success"
/> I can try adding a class to parent tag (non lucide icon) and target its child using CSS selector. |
@mittalyashu Thanks for testing this, I will add this test case to tests. To be clear, you using Vue 2 right? |
@ericfennis yes |
@ericfennis I mean, we can be discussed if we should add support for custom class and style attribute or not (you don't have to take my word). |
@mittalyashu Intentionally I wanted to support that, like we do with the react package. I consider this as a bug. |
okay |
Any ETA when non alpha/beta version will be released? @ericfennis |
I hope Soon, I'm working on it right now. But have some problems with inheriting styling and classes. |
@mittalyashu Just released |
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/lucide/lucide/5opQFhSCP4D29WmnmpiTNLYhZMNQ |
* add configs * Add vue components * Add documentation * add alpha release version * improve npm ignore files * add tests * Make style and class attrs work * 📦 bump version * Add Icon suffix for component names * bump version * Add icon component example * remove space * improvements package.json * update tests * update workflow
The lucide vue npm package.
Alpha pre-release on:
0.12.0-alpha.5
.Feedback is welcome!
Docs here below:
Lucide Vue
Use the lucide icon library in you Vue app.
Installation
yarn add lucide-vue # or npm install lucide-vue
How to use
It's build with ESmodules so it's completely threeshakable.
Each icon can be imported as a vue component.
Example
You can pass additional props to adjust the icon.
Props
size
color
strokeWidth
Custom props
You can also pass custom props that will be added in the svg as attributes.
One generic icon component
It is possible to create one generic icon component to load icons.
Icon Component Example
...
WIP