Skip to content

Allow alternatives to icon fonts #3786

Open
@KazimirPodolski

Description

@KazimirPodolski

Is your feature request related to a problem? Please describe.

There should be a way to use Vuestic with SVG icons including component use.

Icon fonts are widely discouraged, just some of the examples:
https://pictogrammers.com/docs/guides/webfont-alternatives/
https://fontawesome.com/docs/web/dig-deeper/webfont-vs-svg
https://www.lambdatest.com/blog/its-2019-lets-end-the-debate-on-icon-fonts-vs-svg-icons

Some popular frameworks provide more ways to set up icons than just fonts - https://vuetifyjs.com/en/features/icon-fonts/.

Describe the solution you'd like

Icon components should be supported everywhere. So one would be able to do:

<script>
import {mdiAccount} from '@mdi/js';
</script>

<template>
<va-button :icon="mdiAccount"/>
</template>

And also configure aliases using a component if va-icon won't do it.

Describe alternatives you've considered

I think vuetify does this particular thing just right:
https://vuetifyjs.com/en/api/v-icon/#props-icon
https://vuetifyjs.com/en/api/v-btn/#props-icon

Also maybe UnoCSS might help here (it claims a solution for icons), but I haven't tried it.

Additional context

I'm currently evaluating Vuestic to migrate from Vuetify, and I believe this issue is one of the blockers for people doing the same migration.

Metadata

Metadata

Assignees

Labels

d2: easyRecomended mode for new, but mature playersdocspackages/docsgood first issueRight issue if you're new to vuesticv4: must haveThis is something really user want to have

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions