From 2e24567f8e1a41ca6d4021e5a6b2778cc1a55188 Mon Sep 17 00:00:00 2001 From: Christian Friedow Date: Sun, 23 Oct 2022 18:30:39 +0200 Subject: [PATCH] Docs: fix and extend the generic vue3 icon component example (#832) * docs: fix and extend the vue3 icon component example * docs: refactor the usage example to utilize script setup * fix: correct dashcase in property names --- docs/packages/lucide-vue-next.md | 40 ++++++++++++++------------------ 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/docs/packages/lucide-vue-next.md b/docs/packages/lucide-vue-next.md index 62a9b785a..df1f4c126 100644 --- a/docs/packages/lucide-vue-next.md +++ b/docs/packages/lucide-vue-next.md @@ -35,15 +35,8 @@ You can pass additional props to adjust the icon. /> - ``` @@ -53,8 +46,8 @@ export default { | ------------ | -------- | -------- | `size` | *Number* | 24 | `color` | *String* | currentColor -| `strokeWidth`| *Number* | 2 -| `defaultClass`| *String* | lucide-icon +| `stroke-width`| *Number* | 2 +| `default-class`| *String* | lucide-icon ### Custom props @@ -76,25 +69,25 @@ It is possible to create one generic icon component to load icons. ``` html - ``` @@ -107,3 +100,4 @@ export default { ``` +All other props listed above also work on the `Icon` Component.