jfvoliveira / blade-boxicons
A package to easily make use of Boxicons in your Laravel Blade views.
Installs: 1 104
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 2
Open Issues: 3
Requires
- php: ^7.2
- blade-ui-kit/blade-icons: ^0.4.5
- illuminate/support: ^7.14|^8.0
Requires (Dev)
- orchestra/testbench: ^5.0|^6.0
- phpunit/phpunit: ^8.0|^9.0
This package is auto-updated.
Last update: 2024-11-16 06:28:26 UTC
README
A package to easily make use of Boxicons in your Laravel Blade views.
For a full list of available icons see the SVG directory or preview them at boxicons.com. Boxicons are originally developed by Atisa.
Requirements
- PHP 7.2 or higher
- Laravel 7.14 or higher
Installation
composer require jfvoliveira/blade-boxicons
Usage
Icons can be used as self-closing Blade components which will be compiled to SVG icons:
<x-bx-check-shield/>
You can also pass classes to your icon components:
<x-bx-check-shield class="w-6 h-6 text-gray-500"/>
And even use inline styles:
<x-bx-check-shield style="color: #555"/>
The solid icons can be referenced like this:
<x-bxs-check-shield/>
The logo icons can be referenced like this:
<x-bxl-github/>
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-boxicons --force
Then use them in your views like:
<img src="{{ asset('vendor/blade-boxicons/regular/check-shield.svg') }}" width="10" height="10"/>
Blade Icons
Blade Boxicons uses Blade Icons under the hood. Please refer to the Blade Icons readme for additional functionality.
Changelog
Check out the CHANGELOG in this repository for all the recent changes.
Maintainers
Blade Boxicons is developed and maintained by João Oliveira. You can follow me on Twitter.
Blade Icons is developed and maintained by Dries Vints.
License
Blade Boxicons is open-sourced software licensed under the MIT license.