secondnetwork / blade-tabler-icons
A package to easily make use of tabler-icons in your Laravel Blade views.
Installs: 9 005
Dependents: 2
Suggesters: 0
Security: 0
Stars: 13
Watchers: 1
Forks: 2
Open Issues: 0
Requires
- php: ^7.4|^8.0
- blade-ui-kit/blade-icons: ^1.1|^1.5|^1.6
- illuminate/support: ^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- orchestra/testbench: ^6.0|^7.0|^9.0
- phpunit/phpunit: ^9.0|^10.0|^11.0
- dev-main
- v3.21.0
- v3.20.0
- v3.19.0
- v3.18.0
- v3.17.0
- v3.16.0
- v3.15.0
- v3.14.0
- v3.13.0
- v3.12.0
- v3.11.0
- v3.10.0
- v3.9.0
- v3.8.0
- v3.7.0
- v3.6.0
- v3.5.1
- v3.5.0
- v3.4.0
- v3.3.0
- v3.2.0
- v3.1.0
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.0
- v2.48.0
- v2.47.0
- v2.46.0
- v2.45.0
- v2.44.0
- v2.43.0
- v2.42.0
- v2.41.0
- v2.40.0
- v2.39.0
- v2.38.0
- v2.37.0
- v2.36.0
- v2.35.0
- v2.34.0
- v2.33.0
- v2.32.0
- v2.31.0
- v2.30.0
- v2.29.0
- v2.28.0
- v2.27.0
- v2.26.0
- v2.25.0
- v2.24.0
- v2.23.0
- v2.22.0
- v2.21.0
- v2.20.0
- v2.19.0
- v2.18.0
- v2.17.0
- v2.16.0
- v2.15.0
- v2.14.0
- v2.13.0
- v2.12.0
- v2.11.0
- v2.10.1
- v2.10.0
- v2.9.2
- v2.9.1
- v2.9.0
- v2.8.0
- v2.7.0
- v2.6.0
- v2.5.0
- v2.4.1
- v2.4.0
- v2.3.0
- v2.2.1
- v2.2.0
- v2.1.2
- v1.119.0
- v1.118.0
- v1.117.0
- v1.115.0
- v1.113.0
- v1.111.0
- v1.101.0
- v1.100.0
- v1.97.0
- v1.96.1
- v1.96.0
- dev-create-pull-request/patch
This package is auto-updated.
Last update: 2024-10-31 11:44:12 UTC
README
A package to easily make use of tabler-icons in your Laravel Blade views.
For a full list of available icons see the SVG directory or preview them at tabler-icons.io.
Info of update Icons Release
This repository check for a new Icons Release every week with Github Actions and make a pull request
Requirements
- PHP 7.4 or higher
- Laravel 8.0 or higher
Installation
composer require secondnetwork/blade-tabler-icons
Blade Icons
Blade tabler-icons uses Blade Icons under the hood. Please refer to the Blade Icons readme for additional functionality. We also recommend to enable icon caching with this library.
Configuration
Blade tabler-icons also offers the ability to use features from Blade Icons like default classes, default attributes, etc. If you'd like to configure these, publish the blade-tabler-icons.php
config file:
php artisan vendor:publish --tag=blade-tabler-icons-config
Usage
Icons can be used a self-closing Blade components which will be compiled to SVG icons:
<x-tabler-alert-circle />
You can also pass classes to your icon components:
<x-tabler-alert-circle class="w-6 h-6 text-gray-500"/>
And even use inline styles:
<x-tabler-alert-circle style="stroke-width: 1.25"/>
Or into...
@svg('tabler-alert-circle', 'w-6 h-6')
The filled icons can be referenced like this:
<x-tabler-alert-circle-filled />
Or
<x-tabler-alert-circle-f />
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-tabler-icons --force
Then use them in your views like:
<img src="{{ asset('vendor/blade-tabler-icons/alert-circle.svg') }}" width="10" height="10"/>
Maintainers
Blade tabler-icons is developed and maintained by secondnetwork.
License
Blade tabler-icons is open-sourced software licensed under the MIT license.