owenvoke / blade-fontawesome

A package to easily make use of Font Awesome in your Laravel Blade views.
https://packagist.org/packages/owenvoke/blade-fontawesome
MIT License
162 stars 27 forks source link

Example for plain CSS #71

Closed khalyomede closed 8 months ago

khalyomede commented 8 months ago

Description

Hi, great package it has helped me save a ton of bandwidth going from CSS/font files to SVGs!

What about adding an example for non-tailwind users so that the icon does not appear as 0x0 px?

Possible implementation

<x-fas-cloud style="width: 1rem; height: 1rem;" />
owenvoke commented 8 months ago

Glad to hear that the package has helped, I think that the majority of the time people will be using utility classes for sizing, whether that's w-2 h-2 for Tailwind, or something like w-25 for Bootstrap. It's documented within Blade Icons that any attribute can be used, so that would imply that people using inline CSS can use the style attribute.

I'd rather keep the examples minimal, and similar to Blade Icons core, than add inline usage.