Icon React Component

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

Icon Components

There are following components included:

  • Icon / F7Icon

Icon Properties

PropTypeDescription
sizenumber
string
Icon size in px
iconstringCustom icon class
f7stringName of F7 Icons font icon
materialstringName of Material Icons font icon
iosstringIcon to be used in case of iOS theme is used. Consists of icon family and icon name divided by colon, e.g. f7:home
mdstringIcon to be used in case of Material theme is used. Consists of icon family and icon name divided by colon, e.g. material:home
aurorastringIcon to be used in case of Aurora theme is used. Consists of icon family and icon name divided by colon, e.g. f7:home
tooltipstringIcon tooltip text to show on icon hover/press

Examples

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

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

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

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

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

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