Official Vue component for Font Awesome 7
87
Create a small Vue wrapper around the icon-rendering dependency that surfaces development-time diagnostics when icon or mask lookups fail. Rely on the dependency's built-in diagnostic output rather than custom error messages.
@generates
import type { DefineComponent } from "vue";
export type IconSource =
| [string, string]
| { prefix: string; iconName: string }
| string;
export interface DiagnosticIconProps {
icon: IconSource;
mask?: IconSource;
label?: string;
env?: "development" | "production";
}
export const DiagnosticIcon: DefineComponent<DiagnosticIconProps>;Vue bindings for Font Awesome icons and masks that log missing asset lookups during development.
Install with Tessl CLI
npx tessl i tessl/npm-fortawesome--vue-fontawesomedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10