andreiio/blade-remix-icon
A package to easily make use of Remix Icon in your Laravel Blade views.
Maintainers
Fund package maintenance!
Requires
- php: ^7.4|^8.0|^8.1
- blade-ui-kit/blade-icons: ^1.0
Requires (Dev)
- orchestra/testbench: ^6.0|^7.0|^8.0
- phpunit/phpunit: ^9.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 622f77d25bae5d9de6aed31e70dfea92bb0cbe8f
README
π Social Card Blade Remix Icon
Blade Remix Icon
A package to easily make use of Remix Icon in your Laravel Blade views. Based on skydiver/blade-icons-remix.
π Latest Version on Packagist
π Software License
π Build Status
π Style CI
π Total Downloads
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-remix-icon
Usage
Icons can be used a self-closing Blade components which will be compiled to SVG icons:
<x-ri-bookmark-fill />
You can also pass classes to your icon components:
<x-ri-mail-line class="w-6 h-6 text-gray-500 fill-current"/>
And even use inline styles:
<x-ri-stack-line 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-remix-icon --force
Then use them in your views like:
<img src="{{ asset('vendor/blade-remix-icon/code-fill.svg') }}" width="10" height="10"/>
Blade Icons
Blade Remix icon 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.
