janczakb/blade-gravity-icons
最新稳定版本:v1.0.0
Composer 安装命令:
composer require janczakb/blade-gravity-icons
包简介
Complete Gravity UI icon set for Laravel Blade and Filament (MIT, Yandex).
README 文档
README
The full Gravity UI icon set for Laravel Blade and Filament.
This package registers every SVG from the official gravity-ui/icons repository through blade-icons, using the gravityui- prefix expected by Filament and other Blade UI packages.
Features
- Complete catalog — all Gravity UI icons in one package, kept in sync with upstream
- Filament-ready — works with
generate_icon_html(), actions, form fields, and tables - Blade component — use icons via
<x-icon>or the@svgdirective - PHP helper — build icon names from PascalCase or kebab-case identifiers
- Auto-discovery — no manual service provider registration
Requirements
- PHP 8.3+
- Laravel 11, 12, or 13
blade-ui-kit/blade-icons^1.8
Installation
composer require janczakb/blade-gravity-icons
Laravel discovers the service provider automatically. No extra setup is required.
Usage
Icons use the gravityui- prefix plus the kebab-case filename from the Gravity UI catalog.
| Catalog name | Icon string |
|---|---|
EyeClosed |
gravityui-eye-closed |
Magnifier |
gravityui-magnifier |
arrow-chevron-down |
gravityui-arrow-chevron-down |
Blade
<x-icon name="gravityui-eye-closed" class="w-5 h-5" />
@svg('gravityui-magnifier', 'w-4 h-4')
Filament
use Filament\Support\Enums\IconSize; \Filament\Support\generate_icon_html('gravityui-magnifier', size: IconSize::Small);
use Filament\Actions\Action; Action::make('search') ->icon('gravityui-magnifier');
PHP helper
use Bjanczak\BladeGravityIcons\GravityIcon; GravityIcon::make('EyeClosed'); // gravityui-eye-closed GravityIcon::make('arrow-chevron-down'); // gravityui-arrow-chevron-down
Configuration
Publish the config file only if you need to customize the default prefix or attributes:
php artisan vendor:publish --tag=blade-gravity-icons-config
Default prefix: gravityui (file eye.svg → gravityui-eye).
License
The package code is released under the MIT License.
Icon SVGs are © YANDEX LLC and distributed under the MIT License. See THIRD_PARTY_LICENSES.md.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-12