Tabler Icons Component
Simple Laravel 7+ component to display one of the Tabler icon set
Last updated
Simple Laravel 7+ component to display one of the Tabler icon set
Last updated
Copy the component script into tabler.blade.php
in the resources/views/components
folder
Copy the icon svg sprite file from Github tabler/tabler-icons
Locate the file tabler-sprite-nostroke.svg
and copy it into the folder public/tabler/
Example usage:
Twitch icon with height 6 in the same colour as the parent element.
Bucket icon in blue-500 and pushed up to align with the bottom of the text. Default stoke width of 1 is increased to 2.
Search for the icon name required at https://tablericons.com/
Always remember to close the component with the />
If new icons are added just download a fresh copy of the svg file from Github. The project is under active development and new icons are being added regularly.
The approach uses the sprite map file for the icon set which is rather large at 300K+ . You may prefer to download the individual icon files and use the example above to find the correct file. At the time of writing, only individual icon files with 2px stroke weight are provided.