brunocfalcao / blade-feather-icons
A package to easily make use of Feather Icons in your Laravel Blade views.
Installs: 516 730
Dependents: 8
Suggesters: 1
Security: 0
Stars: 34
Watchers: 1
Forks: 13
Open Issues: 18
Requires
- php: ^7.4|^8.0
- blade-ui-kit/blade-icons: ^1.0
- illuminate/support: ^7.14|^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- orchestra/testbench: ^5.0|^6.0|^8.0|^9.0
- phpunit/phpunit: ^8.0|^9.0|^10.5
- dev-master
- v4.0.0
- v3.0.0
- v2.1.0
- v2.0.1
- 2.0.0
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.0
- v0.2.0
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-dependabot/npm_and_yarn/follow-redirects-1.15.6
- dev-dependabot/npm_and_yarn/babel/traverse-7.25.3
- dev-dependabot/npm_and_yarn/browserify-sign-4.2.3
- dev-dependabot/npm_and_yarn/multi-071be8b608
- dev-dependabot/npm_and_yarn/express-4.19.2
- dev-dependabot/npm_and_yarn/ws-6.2.3
- dev-dependabot/npm_and_yarn/multi-00775cc1dc
- dev-dependabot/npm_and_yarn/multi-8a19c61169
- dev-dependabot/npm_and_yarn/qs-and-express-6.11.0
- dev-dependabot/npm_and_yarn/minimist-1.2.8
- dev-dependabot/npm_and_yarn/minimatch-3.1.2
- dev-dependabot/npm_and_yarn/ansi-html-and-webpack-dev-server--removed
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
This package is auto-updated.
Last update: 2024-11-07 22:05:41 UTC
README
A package to easily make use of Feather Icons in your Laravel Blade views.
For a full list of available icons see the SVG directory or preview them at feathericons.com.
Requirements
- PHP 8.0 or higher (versions > Laravel 9.0)
- PHP 7.2 or higher (versions < Laravel 8.0)
- Laravel 7.14 or higher
Installation
composer require brunocfalcao/blade-feather-icons
Usage
Icons can be used a self-closing Blade components which will be compiled to SVG icons:
<x-feathericon-alert-triangle/>
You can also pass classes to your icon components:
<x-feathericon-alert-triangle class="text-primary"/>
And even use inline styles:
<x-feathericon-alert-triangle 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-feather-icons --force
Then use them in your views like:
<img src="{{ asset('vendor/blade-feather-icons/alert-triangle.svg') }}" width="25" height="25"/>
Update your Feather icons to the latest version
Install the feather icons npm library
npm install feather-icons --save
Then copy this line to your webpack.mix file
mix.copy('node_modules/feather-icons/dist/icons', 'public/vendor/feather-icons');
Blade Icons
Blade Feather Icons 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 Feather Icons is developed and maintained by Bruno Falcao. You can follow me on Twitter.
Blade Icons is developed and maintained by Dries Vints.
License
Blade Feather Icons is open-sourced software licensed under the MIT license.