Skip to content

A2InfoField

Information display field component with icon + label + value layout. Supports multiple value style variants.

Props

PropertyTypeDefaultDescription
labelstring-Label text
modelValuestring-Display value
iconstring-Icon name (Element Plus icon) or image URL
variant`tagtextquote`
size`largedefault`default
bgColorstring-Row background color (auto edge-to-edge when set)

Variant Reference

VariantEffect
textPlain text style
tagBlue tag style (bg #EFF4FF, text #2260FA)
quoteGray quote block style (bg #F5F7FA, radius 8px)

Basic Example

Basic Info Field
无内容

Tag Variant Example

Tag Style
无内容

Quote Variant Example

Quote Block Style
无内容

With Icon Example

Info Field with Icon
无内容

JSON Schema

json
{
  "id": "infoFieldId",
  "type": "a2-info-field",
  "props": {
    "label": "Label Name",
    "modelValue": "Display Value",
    "variant": "tag",
    "icon": "Monitor",
    "size": "default",
    "bgColor": "#F8F8FB"
  }
}

A2UI Documentation