cooper/blade-park-icons

A package to easily make use of IconPark Icons in your Laravel Blade views.

v0.0.5 2023-01-27 02:30 UTC

This package is auto-updated.

Last update: 2024-10-30 01:54:06 UTC


README

Tests Latest Stable Version Total Downloads

A package to easily make use of IconPark Icons in your Laravel Blade views.

For a full list of available icons see the SVG directory or preview them at ByteDance IconPark.

Requirements

  • PHP 8.0 or higher
  • Laravel 9.0 or higher

Installation

composer require cooper/blade-park-icons

Usage

Icons can be used a self-closing Blade components which will be compiled to SVG icons:

<x-park-apple/>

You can also pass classes to your icon components:

<x-park-apple class="text-primary"/>

And even use inline styles:

<x-park-apple style="color: #666"/>

To use filled version append -filled

<x-park-apple-filled/>

To use two-tone version append -two-tone

<x-park-apple-two-tone/>

To use multi-color version append -multi-color

<x-park-apple-multi-color/>

Raw SVG Icons

If you want to use the raw SVG icons as assets, you can publish them using:

php artisan vendor:publish --tag=blade-park-icons --force

Then use them in your views like:

<img src="{{ asset('vendor/blade-park-icons/apple.svg') }}" width="10" height="10"/>

Blade Icons

Blade IconPark Icons uses Blade Icons under the hood. Please refer to the Blade Icons readme for additional functionality.

Maintainers

Blade IconPark Icons is developed and maintained by ByteDance.

Blade Icons is developed and maintained by Dries Vints.

License

Blade IconPark Icons is open-sourced software licensed under the MIT license.