Official Vue component for Font Awesome 7
87
Render a Vue UI element that displays a list of icons with configurable sizing and layout options suitable for inline labels or menu entries.
defaultSize when provided, otherwise fall back to the library default. Enabling bordered adds border styling, and enabling fixedWidth enforces equal widths for alignment across items. @testpull: "left" or pull: "right" align accordingly relative to accompanying text while preserving the original item order. @test90, 180, or 270 render rotated output while other icons remain upright. @test@generates
export type IconPull = 'left' | 'right';
export type IconRotation = 0 | 90 | 180 | 270;
export interface StyledIconConfig {
id: string;
icon: string | [string, string];
size?: 'sm' | 'lg' | 'xs' | '1x' | '2x' | '3x';
bordered?: boolean;
fixedWidth?: boolean;
pull?: IconPull;
rotation?: IconRotation;
label?: string;
}
export interface IconStyleProps {
icons: StyledIconConfig[];
defaultSize?: 'sm' | 'lg' | 'xs' | '1x' | '2x' | '3x';
}
export const IconStyleShowcase: unknown;Provides the icon renderer used to display SVGs with sizing, borders, fixed widths, pull alignment, and rotation controls. @satisfied-by
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