Official Vue component for Font Awesome 7
87
A Vue component that layers a text overlay on top of an icon and can switch the overlay into the dependency's counter-style badge while keeping layout controls intact.
asCounter enabled, renders the overlay using the dependency's counter styling instead of its default text styling, while the base icon remains visible. @testasCounter disabled for the same overlay value, renders the overlay using the default text styling with no counter-specific styles remaining. @testposition or transform to the overlay so it remains anchored (e.g., top-right badge) whether counter mode is on or off. @testasCounter or overlay at runtime updates the rendered overlay without remounting the underlying icon. @test@generates
export interface CounterOverlayProps {
icon: unknown; // Value accepted by the icon layer from the dependency
overlay: string | number;
asCounter?: boolean; // defaults to false
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
transform?: string; // optional positional transform string understood by the dependency
fixedWidth?: boolean; // optional fixed-width mode for the container
ariaLabel?: string; // optional accessible label for the overlay
}Provides layered icon rendering and counter-style overlays used by the component.
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