szonov / tabler-blade-icons
Collection of tabler icons as Blade components
Installs: 165
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: ^8.0.2
- laravel/framework: ^9.0 || ^10.0
README
Inline SVG Icons from tabler-icons.io For Laravel Blade
Introduction
This is a package for the Laravel framework that allows you to use svg icons from tabler-icons.io as Blade components
Installation
Install with composer in laravel application:
$ composer require szonov/tabler-blade-icons
Usage
Use icon in your blade files, or even in php code..
Examples:.
<x-tabler::icon.home class="icon-lg" fill="yellow"/> <x-tabler::icon.home class="icon-md" stroke="red"/> <x-tabler::icon.home class="text-blue"/> <x-tabler::icon.home-2 fill="yellow" stroke="red" class="bg-white"/> <x-tabler::icon name="home-2" fill="yellow" stroke="red" class="icon-lg bg-green rounded"/> <x-tabler::icon name="home" class="bg-white" fill="#eee" stroke="red"/> {{ \Tabler\Icons\TablerIcon::make('ad-2')->stroke('red')->fill('yellow') }} {!! \Tabler\Icons\TablerIcon::make('ad-2')->stroke('red')->fill('yellow') !!} <x-tabler::icon name="ball-tennis" fill="#E8C432" stroke="#eee" class="icon-lg bg-black rounded"/>
Find Icon
Name of appropriate icon for your application you can find on https://tabler-icons.io