Skip to main content

Icon

Attribute description

Attribute nameTypeDescriptionDefault value
icon-setstringSpecify the prefix of the icon library to be used, e.g. material-iconsfasbxiconfonticonpark, etc.None
namestringThe name of the icon, which must match the name of the icon in the corresponding icon library.None
sizestringThe size of the icon, which can be any valid CSS size value (e.g. 2rem, 24px).'1rem'
colorstringIcon colour, supports any valid CSS colour value (e.g. red, #333).inherit

Example

1. Material Icons example

2. Font Awesome example

3. Boxicons example

4. Iconfont example

5. IconPark example