Hi I have like to use some fontawesome icons such as Twitter icon.
In my nuxt.config.js, I have those lines below:
fontawesome: {
component: "fa",
icons: {
solid: true,
brands: true
}
},
In html, I have these lines below:
<fa icon="envelope"></fa>
<fa icon="twitter"></fa>
However, the envelop is able to display but not the Twitter icon. Do I miss anything?
The correct way to specify the icons in html should be:
<fa :icon="['fas', 'envelope']" />
<fa :icon="['fas', 'lock']" />
<fa :icon="['fas', 'sign-in-alt']" />
<fa :icon="['fab', 'google']" />
<fa :icon="['fab', 'linkedin']" />
<fa :icon="['fab', 'twitch']" />
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.