The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

Blade Heroicons

blade-ui-kit/blade-heroicons image

Blade Heroicons stats

Downloads
3.4M
Stars
464
Open Issues
0
Forks
47

View on GitHub →

A package to easily make use of Heroicons in your Laravel Blade views.

Blade Heroicons

Blade Heroicons is a Laravel package that simplifies the integration of Heroicons into Laravel Blade views. Developed by Steve Schoger and Adam Wathan, Heroicons offer a refined set of SVG icons which this package makes effortlessly available within Blade templating.

Key Features:

  • Ease of Use: Integrate Heroicons directly in Blade files as self-closing Blade components.
  • Flexible Customization: Easily style icons using classes or inline styles.
  • Blade Icons Integration: Leverage additional features from the Blade Icons library, such as default classes and attributes.
  • Icon Caching: Enhance performance by enabling icon caching.

Requirements:

  • PHP 8.0 or higher
  • Laravel 9.0 or higher

Installation:

Install the package via Composer:

composer require blade-ui-kit/blade-heroicons

Configuration:

To customize default settings, publish the configuration file:

php artisan vendor:publish --tag=blade-heroicons-config

Usage:

Embed icons directly in your Blade templates as components:

<x-heroicon-o-arrow-left class="w-6 h-6 text-gray-500"/>

Or use the @svg directive for more control:

@svg('heroicon-o-arrow-left', 'w-6 h-6', ['style' => 'color: #555'])

Accessing Raw SVG Icons:

Publish and use the raw SVG files in your application:

php artisan vendor:publish --tag=blade-heroicons --force
<img src="{{ asset('vendor/blade-heroicons/o-arrow-left.svg') }}" width="10" height="10"/>

Updating:

Consult the upgrade guide for safe library updates.

More Information:

Blade Heroicons is an essential tool for developers looking to spice up their Laravel applications with high-quality, customizable icons directly within their Blade views.

blade-ui-kit photo

A set of open-source libraries built for Laravel Blade.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Blade Ui Kit Blade Heroicons Related Articles

Laravel Blade Icons Stable Release image

Laravel Blade Icons Stable Release

Read article
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $3200/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit