marvinlabs / laravel-html-font-awesome Goto Github PK
View Code? Open in Web Editor NEWA fluent html builder for Font Awesome icons
License: MIT License
A fluent html builder for Font Awesome icons
License: MIT License
Is there any plan for an upgrade to support FontAwesome 5 ?
In FontAwesome 4, icon class is always prefixed with fa
. (e.g. <i class="fa fa-check"></i>
)
But in FontAwesome 5, even it's support fa, there are still fab, fas, far, fal for different styles. (e.g. <i class="fas fa-check"></i>
, <i class="far fa-check"></i>
)
Could you make the helper fa()
support these styles?
In old version, we can use fa()->icon('check')
to generate <i class="fa fa-check"></i>
Is it possible support some of the following usages to support icon with all styles?
# More helpers
far()->icon('check')
# Style as parameter in fa() (default to solid if no style provided)
fa('s')->icon('check')
fa('solid')->icon('check')
# Style as parameter in icon() (default to solid if no style provided)
fa()->icon('check', 's')
fa()->icon('check', 'solid')
https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#changes
Something like that:
@fa('beer')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.