johnnynotsolucky/laravel-lucide

Lucide icons for Laravel

0.488.0 2025-04-13 19:28 UTC

This package is auto-updated.

Last update: 2025-04-13 19:29:46 UTC


README

A Laravel package that provides Lucide icons as Blade components.

Installation

You can install the package via composer:

composer require johnnynotsolucky/laravel-lucide

The package will automatically register its service provider.

Usage

You can use any Lucide icon as a Blade component:

<x-lucide::refresh-cw size="16" class="some-class" />

Available Props

Prop Default Description
size 24 The size of the icon in pixels
stroke currentColor The stroke color of the icon
strokeWidth 2 The stroke width of the icon
class '' Additional CSS classes to apply to the icon

You can also pass any additional HTML attributes to the component, which will be applied to the SVG element:

<x-lucide::refresh-cw size="16" class="some-class" />

Publishing the Views

If you want to customize the icon components, you can publish the views:

php artisan vendor:publish --tag=lucide-views

Generating Icons

This package includes a script to generate the icon components from the Lucide library. To generate the icons, run:

npm install
npm run generate-icons

License

Package License

The Laravel Lucide package is licensed under the MIT License. Please see License File for more information.

Lucide Icons License

The Lucide icons themselves are licensed under the ISC License and are maintained by the Lucide Icons project.