blade-ui-kit / blade-heroicons

A package to easily make use of Heroicons in your Laravel Blade views.
https://blade-ui-kit.com/blade-icons
MIT License
551 stars 50 forks source link

Allow default classes config #17

Closed mattsbanner closed 3 years ago

mattsbanner commented 3 years ago

I have a default set of custom icons in config/blade-icons.php and this package installed.

I would like to define a default height and width for Hero Icons (e.g. h-5 w-5). Adding this to the class config option of config/blade-icons.php also affects my custom set.

Is there/ could there be a way to define default classes specifically for this set? Seems I can't override the heroicon config set to add it there.

At the moment, the only solution seems to be defining the classes (<x-heroicon-o-home class="w-5 h-5"/>) for every icon individually.

driesvints commented 3 years ago

You could technically overwrite the set in your blade-icons file, I'm sure that's possible. You might need to disable auto discovery for it to work.

That being said I think it might be more user friendly to simple add a config file for Blade Heroicons so you can publish it. I'll try to look into it.

mattsbanner commented 3 years ago

Awesome, thanks @driesvints 😄

driesvints commented 3 years ago

Released this as v1.2.0