Official Vue component for Font Awesome 7
87
A Vue component that renders a primary icon (and optional badge) with selectable animation presets sourced from the dependency.
effect is "none", the rendered icon output uses no animation styles from the dependency. @testeffect as "spin" renders the icon with the dependency's spinning animation. @testeffect as "bounce" renders the icon with the dependency's bouncing animation. @testeffect prop from "pulse" to "fade" updates the rendered icon to the new animation without remounting. @testbadge icon data is provided, render it with layering support so the badge sits behind the primary icon; badgeEffect can differ from effect. @test@generates
export type AnimationEffect =
| "none"
| "spin"
| "pulse"
| "bounce"
| "shake"
| "beat"
| "fade"
| "beatFade"
| "flash"
| "spinPulse"
| "spinReverse"
| "swapOpacity";
export interface IconInput {
name: string;
style?: "solid" | "regular" | "light" | "thin" | "duotone" | "brands";
}
export interface AnimatedIconProps {
icon: IconInput;
badge?: IconInput;
effect: AnimationEffect;
badgeEffect?: Exclude<AnimationEffect, "none">;
ariaLabel?: string;
}Provides animated icon rendering and layering helpers.
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