grupoperis/icons

A custom icon collection for internal usage.

v1.2.0 2024-02-15 12:55 UTC

This package is auto-updated.

Last update: 2024-04-26 13:12:22 UTC


README

Tests Coding Standards

Requirements

  • PHP 8.2 or higher
  • Laravel 10.0 or higher

Installation

composer require grupoperis/icons

Blade Icons

Grupo Peris Icons uses Blade Icons under the hood. Please refer to the Blade Icons readme for additional functionality. We also recommend to enable icon caching with this library.

Configuration

Grupo Peris Icons also offers the ability to use features from Blade Icons like default classes, default attributes, etc. If you'd like to configure these, publish the icons.php config file:

php artisan vendor:publish --tag=icons-config

Usage

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

<x-icon-home/>

You can also pass classes to your icon components:

<x-icon-home class="w-6 h-6 text-gray-500"/>

And even use inline styles:

<x-icon-home style="color: #555"/>

The solid icons can be referenced like this:

<x-icon-home/>