Official Vue component for Font Awesome 7
87
Create reusable SVG symbols from a shared icon set while preserving accessible titles for each definition and per-instance render. The symbol ids should use a predictable prefix (default icon-) so a single definitions block can be mounted once and reused throughout the app.
<defs> block that contains one <symbol> per icon, uses a predictable id prefix for each symbol, and includes a <title> element when a title is provided. @testaria-labelledby reference for that usage while still pointing at the shared symbol definition. @test@generates
export type IconDescriptor = {
name: string;
title?: string;
};
export interface SymbolsOptions {
idPrefix?: string; // defaults to "icon-"
className?: string;
}
export interface IconUseOptions {
title?: string;
labelledBy?: string;
className?: string;
}
export function renderSymbols(
icons: IconDescriptor[],
options?: SymbolsOptions
): import("vue").VNode;
export function renderIcon(
name: string,
options?: IconUseOptions
): import("vue").VNode;Generates SVG output that supports reusable symbol definitions and accessible title metadata.
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