An open API service indexing awesome lists of open source software.

https://github.com/poldixd/laravel-feather

Use Feather Icons as a Blade include() or Blade Component in your Laravel application
https://github.com/poldixd/laravel-feather

composer-package feather feather-icons icons laravel svg svg-icons

Last synced: about 1 year ago
JSON representation

Use Feather Icons as a Blade include() or Blade Component in your Laravel application

Awesome Lists containing this project

README

          

# poldixd/laravel-feather

Use [Feather Icons](https://feathericons.com) as a Blade `include()` or [Blade Component](https://laravel.com/docs/7.x/blade#components) in your Laravel 9.x or 10.x application. This Package uses [Feather 4.28.0](https://github.com/feathericons/feather/releases/tag/v4.28.0).

## Installation

Simply require poldixd/larave-feather through Composer:

```bash
composer require poldixd/laravel-feather
```

## Usage

Include the icon like a Blade template in your view:

```php+HTML

@include('feather::airplay')

```

Optional you can use Blade Components if you're using [laravel](https://laravel.com) greater than 7.x.

```php+HTML

```

You can find a list of all icons on [this](https://feathericons.com/) website.

### Using CSS Classes

You can include the icons with css classes.

```php+HTML

@include('feather::airplay', ['class' => 'my-awesome-class my-second-class'])

```

### Using Style attributes

```php+HTML

@include('feather::airplay', ['style' => 'color: red'])

```

## License

poldixd/laravel-feather is licensed under the [MIT License](https://github.com/poldixd/laravel-feather/blob/master/LICENSE). The icons in this code are from [Feather](https://github.com/feathericons/feather). It is also licensed under the [MIT License](https://github.com/feathericons/feather/blob/master/LICENSE).