vojislavd / heroicons-laravel
A simple implementation of Heroicons in Laravel.
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
pkg:composer/vojislavd/heroicons-laravel
Requires
- php: ^8.3
Requires (Dev)
- orchestra/testbench: ^8.2
- phpunit/phpunit: ^10.0
README
A simple implementation of Heroicons in Laravel.
Requirements
- Laravel
- Tailwind CSS
Installation
You can install the package via Composer:
composer require vojislavd/heroicons-laravel
Usage
You can use an icon by adding <x-icon /> to your Blade file and passing the icon name:
<x-icon name="icon-name" />
By default, the outline icons are used. If you want to use another type (outline, solid, mini, micro), add the type attribute to the component:
<x-icon name="icon-name" type="solid" />
You can also customize other icon attributes. For example:
<x-icon name="icon-name" type="outline" fill="none" stroke-width="1.5" stroke="currentColor" class="w-6 h-6" />
Credits
License
The MIT License (MIT). Please see License File for more information.