Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FontAwesome Brand how to use? #184

Open
flamendless opened this issue Sep 29, 2020 · 3 comments
Open

FontAwesome Brand how to use? #184

flamendless opened this issue Sep 29, 2020 · 3 comments

Comments

@flamendless
Copy link

Hi, I want to use both the material and fontawesome iconpack, material works, but the fontawesome does not

import Toasted from "vue-toasted"
import {FontAwesomeIcon} from "@fortawesome/vue-fontawesome"
import {library, dom} from "@fortawesome/fontawesome-svg-core"
import {faExclamationTriangle} from "@fortawesome/free-solid-svg-icons"
import {faFontAwesome} from "@fortawesome/free-brands-svg-icons"
import router from "./router"
import "../node_modules/material-icons/iconfont/material-icons.css"

library.add(faExclamationTriangle);
library.add(faFontAwesome);
dom.watch();
Vue.component("font-awesome-icon", FontAwesomeIcon);

Vue.use(BootstrapVue)
Vue.use(IconsPlugin)
Vue.use(Toasted);

Here's the usage:

				this.$toasted.show("test: ", {
					iconPack: "fontawesome",
					icon: "font-awesome",
					position: "top-right",
					duration: "3000",
					keepOnHover: true,
					closeOnSwipe: true,
					action: {
						text: "Copy",
						onClick: () => {
						}
					}
				});

ive tried fab-font-awesome, fas font-awesome, fa font-awesome but to no avail

@rlightner
Copy link

rlightner commented Sep 30, 2020

Try changing the iconPack to custom-class?

@flamendless
Copy link
Author

Try changing the iconPack to custom-class?

Doesn't work either. Nothing is shown.

@Shamzic
Copy link

Shamzic commented Dec 30, 2020

Hello, I was facing the same problem. I found the solution with this answer working for me :

#57 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants