Blade Icons is a package to easily make use of SVG icons in your Laravel Blade views. This week, creator Dries Vints released the first stable version (1.0.0), which is a huge milestone for this project!
With the release of 1.0 stable, here are some features added in the stable release since we covered the Blade UI kit launch of 0.1:
- Caching - new caching command to cache icons
- Default Icon Component - generic component to render blade icons
- Filesystem Disks - load icons from different filesystems
- Fallback icons - define which icon to render (per set) when the icon cannot be found
- Multiple Icon Paths - you can configure and organize icons in multiple paths
- Default Attributes - define some attributes added to every icon
A much-requested feature for this package is a default icon component. Here's an example from the docs:
1{{-- Camera icon component --}}2<x-icon-camera/>3 4{{-- Default icon component rendering the camera component --}}5<x-icon name="camera"/>
Along with Blade Icons 1.0.0, Blade Heroicons and Blade Zondicons were received a stable 1.0.0 release. This package requires Laravel 8 and either PHP 7.4 or 8.0.
0 comments:
Post a Comment
Thanks