Skip to content

A2Icon

Icon display component.

Props

PropertyTypeDefaultDescription
namestring-Icon name (Element Plus Icons)
sizenumber16Icon size (px)
colorstring-Icon color

Basic Example

Basic Icon
无内容

Multiple Icons

Icon Collection
无内容

JSON Schema

json
{
  "id": "iconId",
  "type": "a2-icon",
  "props": {
    "name": "Check",
    "size": 24,
    "color": "#67c23a"
  }
}

Available Icons

Uses Element Plus Icons. Common icons include:

  • Check, Close, Plus, Minus
  • Edit, Delete, Search, Refresh
  • User, Setting, Document, Folder
  • ArrowUp, ArrowDown, ArrowLeft, ArrowRight

A2UI Documentation