epicmaxco / epic-spinners

Easy to use css spinners collection with Vue.js integration
https://epic-spinners.epicmax.co
3.84k stars 357 forks source link

Setting defaults for spinners #28

Closed mubaidr closed 5 years ago

mubaidr commented 5 years ago

Is there any to set custom default (timing, color etc) so that it would just work with <atom-spinner/>

asvae commented 5 years ago

Do you want a global default?

So far we provide component default and a way to override via props.

asvae commented 5 years ago

The simplest solution I can think of is to use extends and override the props as you see fit.

Providing an API in no hacky way would involve doing vue plugin. And that's kinda a lot of boilerplate for users.