codeiucom / laravel-blade-heroicons
CodeIU Laravel Blade HeroIcons Directive
Installs: 41
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:framework
Requires
- php: ^8.0
This package is auto-updated.
Last update: 2025-03-29 00:49:48 UTC
README
more svg icons:
https://github.com/codeiucom/laravel-blade-svg-icons
install
composer require codeiucom/laravel-blade-heroicons
use directive
ex) @heroicons-iconName
-style
("classes
")
- default
@heroicons-folder("w-6 h-6")
- outline
@heroicons-folder-o("w-6 h-6")
- solid
@heroicons-folder-s("w-6 h-6")
use component
- default
<heroicons-folder class="w-6 h-6"/> <!-- or --> <heroicons-folder class="w-6 h-6"></heroicons-folder>
- outline
<heroicons-folder-o class="w-6 h-6"/> <!-- or --> <heroicons-folder-o class="w-6 h-6"></heroicons-folder-o>
- solid
<heroicons-folder-s class="w-6 h-6"/> <!-- or --> <heroicons-folder-s class="w-6 h-6"></heroicons-folder-s>
options
- change directive (default: heroicons)
ex)CODEIU_LARAVEL_BLADE_HEROICONS_PREFIX=icons
- change default style (default: solid)
ex)CODEIU_LARAVEL_BLADE_HEROICONS_DEFAULT_STYLE=outline
- set default class (default: empty)
ex)CODEIU_LARAVEL_BLADE_HEROICONS_DEFAULT_CLASSES="w-6 h-6"
if you use default class with tailwindcss, add below in tailwind.config.jsmodule.exports = { ... content: [ './storage/framework/views/*.php', ], ... }