A package to use your SVG icon sprite in your Laravel Blade views.
caneco/blicons is a Laravel package for a package to use your svg icon sprite in your laravel blade views..
It currently has 3 GitHub stars and 4 downloads on Packagist (latest version 0.1.0).
Install it with composer require caneco/blicons.
Discover more Laravel packages by caneco
or browse all Laravel packages to compare alternatives.
Last updated
A package to use your SVG icon sprite for your Laravel Blade views.
You can install the package via composer:
composer require caneco/blicons
You can publish the expected icons resource folder and default icon
php artisan vendor:publish --provider="Caneco\Blicons\BliconsServiceProvider"
Add your icon set in the resources folder
Example:
resources/icons/user.svg
resources/icons/file.svg
resources/icons/mail.svg
Run the artisan command to create a cache file of you icon set
php artisan cache:icons
Add the icon sprite list in your Blade layout (generally at the bottom)
<x-icon-list/>
And use the icons at will in your Blade views
<x-icon type="user" class="text-red-500 w-8 h-8"/>
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.