andreiio / blade-iconoir
A package to easily make use of Iconoir in your Laravel Blade views.
Fund package maintenance!
code4romania
Installs: 37 513
Dependents: 1
Suggesters: 1
Security: 0
Stars: 6
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.4|^8.0
- blade-ui-kit/blade-icons: ^1.0
Requires (Dev)
- orchestra/testbench: ^6.0|^7.0
- phpunit/phpunit: ^9.0
- dev-main
- 4.6.0
- 4.5.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.10.0
- 1.9.1
- 1.9.0
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-chore/update-v7.10.0
This package is auto-updated.
Last update: 2024-11-12 20:14:47 UTC
README
Blade Iconoir
A package to easily make use of Iconoir in your Laravel Blade views.
For a full list of available icons see the resources/svg
directory or search
Requirements
- PHP 7.4 or higher
- Laravel 8.0 or higher
Install
composer require andreiio/blade-iconoir
Usage
Icons can be used a self-closing Blade components which will be compiled to SVG icons:
<x-iconoir-bookmark />
You can also pass classes to your icon components:
<x-iconoir-mail class="w-6 h-6 text-gray-500 fill-current" />
And even use inline styles:
<x-iconoir-warning-triangle-solid style="fill: #F00" />
Raw SVG Icons
If you want to use the raw SVG icons as assets, you can publish them using:
php artisan vendor:publish --tag=blade-iconoir --force
Then use them in your views like:
<img src="{{ asset('vendor/blade-iconoir/bicycle.svg') }}" width="10" height="10"/>
Blade Icons
Blade Iconoir uses Blade Icons under the hood. Please refer to the Blade Icons readme for additional functionality.
Testing
composer test
Credits
License
This project is licensed under the MIT License (MIT) – see the LICENSE file for details.