Represents the icon component.
Since: 1.0.0
Constraints:
The length unit of the component properties can be rpx or px (default).
Attributes
| Name | Type | Default Value | Mandatory | Description |
|---|---|---|---|---|
| type | string | - | Yes | Icon type. Valid values: success, success_no_circle, success_circle, safe_success, safe_warn, info, info_circle, warn, waiting, waiting_circle, circle, cancel, download, search, and clear. |
| size | number|string | 23 | No | Icon size, in rpx or px (default). |
| color | string | - | No | Icon color, which follows the CSS color value syntax. |
Example:
<icon class="icon-box-img" type="warn" color="#C9C9C9" size="{{100}}"/>