wulfheart / blade-remixicon
A package to easily make use of Remixicon in your Laravel blade views.
Requires
- php: ^7.2
- blade-ui-kit/blade-icons: ^0.4.3
- illuminate/support: ^7.14
Requires (Dev)
- orchestra/testbench: ^5.0
- phpunir/phpunit: ^8.0|^9.0
This package is auto-updated.
Last update: 2023-03-27 01:58:36 UTC
README
A package to easily make use of Remixicon in your Laravel Blade views.
For a full list of available icons see the the project's website.
Requirements
- PHP 7.2 or higher
- Laravel 7.14 or higher
Install
Via composer:
$ composer require wulfheart/blade-remixicon
Usage
Icons can be used a self-closing blade components which will be compiled to SVG icons.
<x-ri-home-6-fill/>
<x-ri-home-6-line/>
You can also pass classes to your icon components:
<x-ri-user-smile-line class="w-6 h-6 text-gray-600"/>
And even use inline styles:
<x-ri-aliens-line style="color: #555"/>
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-remixicon --force
Then use them in your views like:
<img src="{{ asset('vendor/blade-remixicon/door-fill.svg') }}" width="10" height="10"/>
Blade icons
Blade Github octicons uses blade icons under the hood. Please refer to the Blade icons readme for additional functionality.
Testing
$ ./vendor/bin/phpunit
Contributing
Please see CONTRIBUTING.md for details.
Security
If you discover any security issues, please email me instead of using the issue tracker.
Credits
License
The MIT license (MIT). Please see License file for more information.