johnnynotsolucky/laravel-lucide
最新稳定版本:0.562.0
Composer 安装命令:
composer require johnnynotsolucky/laravel-lucide
包简介
Lucide icons for Laravel
README 文档
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.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-27