iopro / laravel-icons
Easily use Heroicons in Laravel projects
1.1.1
2024-11-20 08:17 UTC
Requires
- php: ^8.1
README
Easily use Heroicons in Laravel projects.
Requirements
- Laravel
- Tailwind CSS
Installation
You can install the package via Composer:
composer require iopro/laravel-icons
Usage
<x-icons.icon_name />
By default, the outline
icons are used. If you want to use another type (solid
, mini
, micro
), add needed attribute to the component:
<x-icons.icon_name solid /> <x-icons.icon_name mini /> <x-icons.icon_name micro />
You can also customize other icon attributes. For example:
<x-icons.icon_name stroke-width="1.5" fill="none" stroke="currentColor" class="w-12 h-12" />
Credits
License
The MIT License (MIT). Please see License File for more information.