themodularway/laravel-heroicons

Laravel package to provide heroicons resources


License
MIT

Documentation

Laravel package to provide heroicons resources

Installation

Load the package via composer:

composer require themodularway/laravel-icons

Usage

To include any of the icons in a blade file use:

<x-tmwicons::outline._heroicon_name_ />
<!--
default values:
     fill="none"
     viewBox="0 0 24 24"
     stroke-width="1.5"
     stroke="currentColor"
     class="w-6 h-6"
-->

<x-tmwicons::solid._heroicon_name_ />
<!--
default values:
     fill="currentColor"
     viewBox="0 0 24 24"
     class="w-6 h-6"
-->

<x-tmwicons::mini._heroicon_name_ />
<!--
default values:
     fill="currentColor"
     viewBox="0 0 20 20"
     class="w-5 h-5"
-->

<!--
coming soon
<x-tmwicons::micro._heroicon_name_ />
-->

Where __heroicon_name__ is the name of the corresponding heroicons icon.

Default classes can be overridden:

<x-tmwicons::outline.arrow-left class="w-5 h-5 stroke-red-500" /> 

Configuration

To publish resources you can use following command

php artisan vendor:publish --tag=tmwicons-resources

License

The MIT License (MIT). Please see License File for more information.