alex-oleshkevich / vue-tabler-icons

Fully customizable free SVG icons made as Vue components.
MIT License
150 stars 13 forks source link

Configuration Request file #43

Closed sgurin closed 4 months ago

sgurin commented 5 months ago

Hi, is any plans for future configuration of the default options? For example, set stroke-width on all icons in one config file?

Now it is in const variable

image

alex-oleshkevich commented 5 months ago

Hi, I am in doubt, because library bundle has become very large and continues growing. I tend to think that this library is a bad choice. It may be much better to copy/paste SVG files from https://tabler-icons.io/ and wrap them into your Vue components. A typical project does not use 4k+ icons, and therefore there is no need to download tens of megabytes each time.

sgurin commented 5 months ago

For sure, but I use dynamic imports and import only icons that I use in the component. Only one think makes me cry that I cannot configure stroke-width param globally.

alex-oleshkevich commented 5 months ago

Then I kindly ask you to submit a PR.

On Fri, Mar 22, 2024, 14:24 Stanislav Gurin @.***> wrote:

For sure, but I use dynamic imports and import only icons that I use in the component. Only one think makes me cry that I cannot configure stroke-width param globally.

— Reply to this email directly, view it on GitHub https://github.com/alex-oleshkevich/vue-tabler-icons/issues/43#issuecomment-2015094494, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE3HSGGI5MIYIQBXTUSIJDYZQWKDAVCNFSM6AAAAABFDDPUN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJVGA4TINBZGQ . You are receiving this because you commented.Message ID: @.***>