alex-oleshkevich / vue-tabler-icons

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

Add global config with icon class option #30

Open esl51 opened 1 year ago

esl51 commented 1 year ago

PR for https://github.com/alex-oleshkevich/vue-tabler-icons/pull/25#issuecomment-1306831327

Now there is a global configurator, which can be expanded later. I added the iconClass parameter there to define the class that will be added to all icons.

Registering plugin with options:

import VueTablerIcons from 'vue-tabler-icons'

const app = createApp(App);

app.use(VueTablerIcons, {
    iconClass: 'my-icon-class',
});