OptionalbeatMakes the icon scale in and out continuously.
OptionalbeatOptionalborderApplies a border to the icon
OptionalbounceMakes the icon bounce up and down.
OptionalclassAny additional CSS classes to apply to the icon
OptionalcolorThe color of the icon. Can be any valid CSS color value
OptionalfadeMakes the icon fade in and out continuously.
Optionalfixed7.0.0
Starting in FontAwesome 7.0.0, all icons are fixed width by default. This property will be removed in a future version.
If you want to remove the fixed width to replicate the behavior of
previous versions, you can set the new widthAuto property to true.
OptionalflipFlip the icon horizontally, vertically or both.
OptionalgradientCreates a <linearGradient /> or <radialGradient /> element inside the icon svg, and applies it as a fill to the icon.
If you also provide a fill prop, the fill prop will take precedence over the gradient.
Omit the fill prop to allow the gradient to be applied correctly.
Linear Gradient Example:
<FontAwesomeIcon
icon="coffee"
gradientFill={{
id: 'myGradient',
type: 'linear',
x1: '0%',
y1: '0%',
x2: '100%',
y2: '0%',
stops: [
{ offset: '0%', color: '#FF5F6D' },
{ offset: '100%', color: '#FFC371' },
],
}}
/>
Radial Gradient Example:
<FontAwesomeIcon
icon="coffee"
gradientFill={{
id: 'myGradient',
type: 'radial',
r: '150%',
cx: '30%',
cy: '107%',
stops: [
{ offset: '0', color: '#FDF497' },
{ offset: '0.05', color: '#FDF497' },
{ offset: '0.45', color: '#FD5949' },
{ offset: '0.6', color: '#D6249F' },
{ offset: '0.9', color: '#285AEB' },
],
}}
/>
NOTE: Only supports one gradient type, providing both linear and radial gradient props will have undesired side-effects.
OptionalinverseInvert the icon color.
OptionallistOptionalmaskGrab the Mask utility when you want to layer two icons but have the inner icon cut out from the icon below so the parent element’s background shows through.
OptionalmaskAccessibility ID for the mask element
OptionalpullWrap text around the icon by pulling it left or right.
OptionalpulseWill be removed in a future version. Please use spinPulse instead.
Makes the icon spin 360deg clockwise in 8 incremental steps.
OptionalrotateCustom rotation is used to rotate the icon by a specific number of degrees,
rather than the standard 90, 180, or 270 degrees available in the rotation property.
To use this feature, set rotateBy to true and provide a CSS variable --fa-rotate-angle
with the desired rotation angle in degrees.
OptionalrotationThe rotation property is used to rotate the icon by 90, 180, or 270 degrees.
OptionalshakeMakes the icon shake.
OptionalsizeThe size of the icon from a predefined set of sizes.
OptionalspinMakes the icon spin 360deg clockwise continuously.
OptionalspinMakes the icon spin 360deg clockwise in 8 incremental steps.
OptionalspinOptionalstyleAny custom styles or CSS variable overrides for the icon element.
OptionalswapWhen using Duotone icons, this property will swap the opacity of the two colors. The first color will be rendered with the opacity of the second color, and vice versa
OptionalsymbolThe icon should render as an SVG symbol rather than a regular element.
OptionaltabOptionaltitleOptionaltitleOptionaltransformApply a custom transform to the icon either using the built-in Transform config, or a CSS transform string.
OptionalwidthWhen set to true, the icon will automatically adjust its width to
only the interior symbol and not the entire Icon Canvas.
The icon to render.