Displays an icon. The following icon suites are available:
Icons are displayed using the Icon
component. In Onsen UI there are three families of icons available:
The icon is selected using the icon
prop. To use Material Icons the md-
prefix is used, ion-
for Ionicons and fa-
for Font Awesome.
<Icon icon='md-menu' />
The code above displays a Material Design menu icon.
Name | Type | Description |
---|---|---|
icon | String |
The icon name. |
size | String |
The sizes of the icon. Valid values are lg, 2x, 3x, 4x, 5x, or in the size in pixels.
Icons can also be styled based on modifier presence. Add comma-separated icons with
will render as a |
rotate | Number | Number of degrees to rotate the icon. Valid values are 90, 180 and 270. Optional. |
fixed-width |
Boolean
false |
When used in a list, you want the icons to have the same width so that they align vertically by defining this attribute. Optional. |
spin | Specify whether the icon should be spinning. Optional. |
Name | Description |
---|---|
fixedWidth | When used in a list, you want the icons to have the same width so that they align vertically by defining this attribute. |
spin | Specify whether the icon should be spinning. |
If you have any questions, use our Community Forum or talk to us on Discord chat. The Onsen UI team and your peers in the community will work together to help solve your issues.
For bug reports and feature requests use our GitHub Issues page.