Skip to content

Font Awesome Icon ​

BsFontawesomeIcon is small and a lightweight component. It can be used inside almost any component or HTML element. BsFontawesomeIcon loads Font Awesome free icons dynamically.

Updated in v2.2.1

Overview ​

The icon's name used by BsFontawesomeIcon is the same as in Font Awesome website. BsFontawesomeIcon has three icon variants, namely: Solid (default), Regular, and Brands.

The size property is used to set the icon size. And if not set, the default size will be used.

Solid
Regular
Brands

IMPORTANT

The <bs-icon-fontawesome> tag still works, but has been deprecated since v2.2.0.

Styling an Icon ​

<bs-fontawesome-icon> can be styles with css class or inline style.

Solid
Regular

Rotating an Icon ​

Additionally, you can also rotate the icon to some extent. Use flip property or rotation property to rotate the icon, but do not use both property together.

Flip
Rotate

Animation ​

<bs-fontawesome-icon> also has built-in animations, which are: Spin and Pulse.

Spin animation
Pulse animation

API Reference ​

Released under the BSD-3-Clause License.