janczakb / blade-gravity-icons
Complete Gravity UI icon set for Laravel Blade and Filament (MIT, Yandex).
Requires
- php: ^8.3
- blade-ui-kit/blade-icons: ^1.8
- illuminate/support: ^11.0|^12.0|^13.0
Requires (Dev)
- orchestra/testbench: ^10.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
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.