All Products
Search
Document Center

AMIcon

Last Updated: Feb 04, 2021

This section describes icon component AMIcon.

Property Description Type Default value Mandatory
type Type of the icon. For details, scan the QR code above to view. String - true
size The icon size in pixels. String - false
color The icon color, which is consistent with the CSS color. String - false
Icon Style Valid type Value
Basic arrow-left, arrow-up, arrow-right, arrow-down, cross, plus
Outline close-o, dislike-o, heart-o, help-o, like-o, location-o, info-o, success-o, wait-o, warning-o, star-o, download, friends, circle, delete, charge, card, notice, qrcode, reload, scan, money, search, setting, share, zoom-in, zoom-out
Solid close, dislike, heart, help, like, location, info, success, wait, warning, star

Sample code

 
  1. {
  2. "defaultTitle": "AntUI component library of the Mini Program",
  3. "usingComponents": {
  4. "am-icon": "mini-antui/es/am-icon/index",
  5. }
  6. }
 
  1. <view>
  2. <am-icon type="like" size="{{24}}" color="#333" />
  3. </view>