technikermathe / blade-lucide-icons
A package to easily make use of Lucide icons in your Laravel Blade views.
Installs: 64 275
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 7
Open Issues: 0
Requires
- php: ^8.1
- blade-ui-kit/blade-icons: ^1.6
- illuminate/support: ^9.0|^10.0|^11.0
Requires (Dev)
- orchestra/testbench: ^7.0|^8.0|^9.0
- phpunit/phpunit: ^9.0|^10.0|^11.0
- spatie/phpunit-snapshot-assertions: ^4.2.14|^5.0|^6.0
- dev-main
- v3.74.0
- v3.73.0
- v3.72.0
- v3.71.0
- v3.70.0
- v3.69.0
- v3.68.0
- v3.67.0
- v3.66.0
- v3.65.0
- v3.64.0
- v3.63.0
- v3.62.0
- v3.61.0
- v3.60.0
- v3.59.0
- v3.58.0
- v3.57.0
- v3.56.0
- v3.55.0
- v3.54.0
- v3.53.0
- v3.52.0
- v3.51.0
- v3.50.0
- v3.49.0
- v3.48.0
- v3.47.0
- v3.46.0
- v3.45.0
- v3.44.0
- v3.43.0
- v3.42.0
- v3.41.0
- v3.40.0
- v3.39.0
- v3.38.0
- v3.37.0
- v3.36.0
- v3.35.0
- v3.34.0
- v3.33.0
- v3.32.0
- v3.31.0
- v3.30.0
- v3.29.0
- v3.28.0
- v3.27.0
- v3.26.0
- v3.25.0
- v3.24.0
- v3.23.0
- v3.22.0
- 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.0
- v3.4.0
- v3.3.0
- v3.2.0
- v3.1.0
- 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.0
- v2.9.0
- v2.8.0
- v2.7.0
- v2.6.0
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.0
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.0
- dev-release-please--branches--main
This package is auto-updated.
Last update: 2024-11-16 00:07:38 UTC
README
A package to easily make use of Lucide Icons in your Laravel Blade views.
For a full list of available icons see the SVG directory or preview them at lucide.dev.
Requirements
- PHP 8.1 or higher
- Laravel 9.0 or higher
Installation
composer require technikermathe/blade-lucide-icons
Blade Icons
Blade LucideIcons 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 LucideIcons 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-lucide-icons.php
config file:
php artisan vendor:publish --tag=blade-lucide-icons-config
Usage
Icons can be used as self-closing Blade components which will be compiled to SVG icons:
<x-lucide-activity />
You can also pass classes to your icon components:
<x-lucide-album class="w-6 h-6 text-gray-500"/>
This is how you can change the stroke width:
<x-lucide-server stroke-width="1"/>
And even use inline styles:
<x-lucide-anchor style="color: #555"/>
The solid icons can be referenced like this:
<x-lucide-bike />
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-lucide-icons --force
Then use them in your views like:
<img src="{{ asset('vendor/blade-lucide-icons/cloud-moon.svg') }}" width="10" height="10"/>
Changelog
Check out the CHANGELOG in this repository for all the recent changes.
Maintainers
This is a fork of the initial work of Dan Pock.
License
Blade LucideIcons is open-sourced software licensed under the MIT license.