Official Vue component for Font Awesome 7
87
Create a Vue component that displays an icon with an optional text badge layered on top.
counter is true, renders numeric badges with counter styling and exposes an accessible label that includes both the icon description and badge value. @test@generates
export type BadgeCorner = "top-left" | "top-right" | "bottom-left" | "bottom-right";
export interface LayeredBadgeProps {
icon: unknown; // identifier accepted by the icon dependency
badge?: string | number;
badgeCorner?: BadgeCorner; // default "top-right"
fixedWidth?: boolean; // optional to align with surrounding text
counter?: boolean; // toggle counter visual style for numeric badges
title?: string; // accessible label for the layered output
}
export const LayeredBadge: import("vue").DefineComponent<LayeredBadgeProps>;Provides layered icon rendering and text overlay support for badges.
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