Icon React Component

Icon React component represents Icon element. It is ready to be used with custom icons, Framework7 Icons, Material Icons, Font Awesome, Ionicons.

Icon Components

There are following components included:

  • **Icon** / **F7Icon**

Icon Properties

Prop Type Description
size number string Icon size in px
icon string Custom icon class
f7 string Name of F7 Icons font icon
material string Name of Material Icons font icon
fa string Name of Font Awesome font icon
ion string Name of Ionicons font icon
ios string Icon to be used in case of iOS theme is used. Consists of icon family and icon name divided by colon, e.g. f7:home or ion:home
md string Icon to be used in case of Material theme is used. Consists of icon family and icon name divided by colon, e.g. material:home or fa:home
aurora string Icon to be used in case of Aurora theme is used. Consists of icon family and icon name divided by colon, e.g. f7:home or ion:home
tooltip string Icon tooltip text to show on icon hover/press

Examples

1. {/*  Default back icon */}
2. <Icon icon="icon-back"></Icon>

4. {/*  Some custom icon */}
5. <Icon icon="icon-home"></Icon>

7. {/*  F7 Icons font icon */}
8. <Icon f7="home"></Icon>

10. {/*  Material Icons font icon */}
11. <Icon material="home"></Icon>

13. {/*  Font Awesome icons font icon */}
14. <Icon fa="home"></Icon>

16. {/*  Ionicons icons font icon */}
17. <Icon ion="home"></Icon>

19. {/*  F7 icons font icon with custom size and color */}
20. <Icon f7="home" size="44px" color="blue"></Icon>

22. {/*  Conditional icon */}
23. <Icon ios="f7:home" aurora="f7:home" md="material:home"></Icon>