Skip to content

Support font-awesome #121

Answered by Qualterink
Qualterink asked this question in Q&A
Discussion options

You must be logged in to vote

Ok I found answear.

`import "./lib-components/assets/css/variables.css"; // Import global CSS

import { defineSetupVue3 } from "histoire/client";

import { createI18n } from "vue-i18n";

import {
FontAwesomeIcon,
FontAwesomeLayers
} from "@fortawesome/vue-fontawesome";
import { library } from "@fortawesome/fontawesome-svg-core";
import { fas } from "@fortawesome/free-solid-svg-icons";
import { far } from "@fortawesome/free-regular-svg-icons";
import { fas as fasPro } from "@fortawesome/pro-solid-svg-icons";
import { far as farPro } from "@fortawesome/pro-regular-svg-icons";

library.add(fas);
library.add(fasPro);
library.add(far);
library.add(farPro);

export const setupVue3 = defineSetupVue3(…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Qualterink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant