Font Awesome 5
See original GitHub issueAny plan to support Font Awesome 5 icon?
I manage to hack up a solution, but it would be great to have official support for it.
Use the following code to load Font Awesome 5 Icon with vue-toasted.
import fontawesome from '@fortawesome/fontawesome'
import faSolid from '@fortawesome/fontawesome-free-solid'
Vue.toasted.show(`${fontawesome.icon(faSolid.faCoffee).html} Hello`, {
type: 'success',
duration: 3000
})
For spacing and margin, include the following css.
.toasted-container .toasted > svg {
margin-right: .5rem;
margin-left: -.4rem;
}
https://code.luasoftware.com/tutorials/vuejs/vue-toasted-with-font-awesome-icon/
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Find the Perfect Icon for Your Project in Font Awesome 5
Search all the Version 5 icons and match your project with a look and feel that's just right. Better yet, try Font Awesome...
Read more >Find the Perfect Icon for Your Project in Font Awesome 5
Search all the Version 5 icons and match your project with a look and feel ...
Read more >Font Awesome
Font Awesome is the Internet's icon library and toolkit, used by millions of designers, developers, and content creators. Start for Free Get More...
Read more >Find Icons with the Perfect Look & Feel - Font Awesome
Five styles that are always in fashion and ready to bring that extra level of iconic flair to projects. Solid. Great for bold...
Read more >Download - Font Awesome
Font Awesome 5. LTS. v5.15.4: Released: August 2021: This version will continue to receive patch releases.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
in case you are still wondering (i’m assuming this is your intent):
you’ll probably want to also add this extra line of css
Added support to fontawesome.
simply set the icon pack to
fontawesome
!!