Skip to content

FaIcon ​

Resolves el-icon-*, fa-icon-*, local icon classes and external SVG URLs through one component.

Icon Modes

Interactive example
View code
Vue
<template>
	<div class="demo-row">
		<FaIcon name="el-icon-Search" :size="26" color="var(--el-color-primary)" />
		<FaIcon name="el-icon-Setting" :size="30" color="var(--el-color-success)" />
		<FaIcon name="fa-icon-FullScreen" :size="28" color="var(--el-color-warning)" />
		<FaIcon name="fa-icon-LoadingImage" :size="24" color="var(--el-color-danger)" />
	</div>
</template>

FaIcon Complete API

Resolves Element Plus, Fast, local icon classes, or external SVG URLs by name prefix.

Props

EL defaults refer to Element Plus before Fast is imported. 2.14.7

PropertySourceDescriptionTypeDefault
nameRequiredFast additionIcon name, CSS class, or external SVG URL.String—
sizeEL nativeComponent size.String / Number—
colorEL nativeSVG tag's fill attributeString—

Slots

NameSourceDescriptionParameters / type
defaultEL native · not forwardedCustomize default content—