mckenziearts/blade-untitledui-icons
Laravel Blade package that adds Untitled UI icons to your app. Easily render SVGs as Blade components with simple syntax, customizable size and classes, and fast, consistent icon usage across your views without manual SVG copying.
Install the package via Composer:
composer require mckenziearts/blade-untitledui-icons
Publish the config file (optional, but recommended for customization):
php artisan vendor:publish --provider="McKenzieArts\BladeUntitledUIIcons\BladeUntitledUIIconsServiceProvider" --tag=config
This creates config/blade-untitledui-icons.php, where you can set default options like prefix, class, or size. In your Blade views, use icons as Blade components, e.g.:
<x-untitledui-icons.user />
<x-untitledui-icons.search size="24" class="text-gray-500" />
Icons are automatically loaded from vendor/mckenziearts/blade-untitledui-icons/resources/svg/.
@php or Livewire:
@php($icon = 'check')
<x-untitledui-icons.{{ $icon }} />
{{-- resources/views/components/social/github.blade.php --}}
<x-untitledui-icons.github {{ $attributes->merge(['class' => 'w-6 h-6']) }} />
<x-untitledui-icons.menu class="w-5 h-5 dark:text-white" />
@isset or check existence first in Blade to avoid errors (no built-in fallback).user, check-circle), but Blade uses dot notation (<x-untitledui-icons.user-circle />). Ensure underscores/dashes match the underlying filename (user_circle.svg → user.circle).blade-snapshot or switching to an icon font.w-6 h-6; override in the config or on each instance. Avoid hardcoding sizes in views to maintain consistency.custom disk or folder in the config, then use <x-untitledui-icons.custom::my-icon />.How can I help you explore Laravel packages today?