Icon Svelte Component

Icon Svelte 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

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:house
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:house
tooltipstringIcon tooltip text to show on icon hover/press
tooltipTriggerstringhoverDefines how to trigger (open) Tooltip. Can be hover or click. If hover tooltip will be toggled on mouse hover on desktop, and with tap and hold on touch devices

Examples

  1. <!-- Default back icon -->
  2. <Icon icon="icon-back" />
  3. <!-- Some custom icon -->
  4. <Icon icon="icon-home" />
  5. <!-- F7 Icons font icon -->
  6. <Icon f7="house" />
  7. <!-- Material Icons font icon -->
  8. <Icon material="home" />
  9. <!-- F7 icons font icon with custom size and color -->
  10. <Icon f7="house" size="44px" color="blue" />
  11. <!-- Conditional icon -->
  12. <Icon ios="f7:house" aurora="f7:house" md="material:home" />

← Grid / Layout Grid

Inputs / Form Inputs →