I’m trying to use a custom icon in the backend in a SelectBoxEditor.
Since v5 of FontAweSome adding custom icons to it is supported.
I’ve seen two approaches which both require access to a fontawesome instance as I understand this:
1st approach:
import fontawesome from '@fontawesome/fontawesome'
import { faSplat } from './InfoBox'
fontawesome.library.add(faSplat)
2nd approach:
import { library, dom } from "@fontawesome/fontawesome-svg-core";
import { faSplat } from './InfoBox'
library.add(faSplat);
dom.watch();
But I have no clue how to access @fontawesome
Can anyone help me there?