Skip to content

A2Button

Button component with action support.

Props

PropertyTypeDefaultDescription
textstring-Button text
type`primarysuccesswarning
size`largedefaultsmall`
disabledbooleanfalseDisabled state
iconstring-Icon name (submit/save/confirm/ok buttons auto-use Promotion icon)

Basic Example

Basic Button
无内容

Button Types

Button Variants
无内容

Button Sizes

Button Sizes
无内容

JSON Schema

json
{
  "id": "buttonId",
  "type": "a2-button",
  "props": {
    "text": "Submit",
    "type": "primary",
    "size": "default",
    "icon": "Check"
  }
}

A2UI Documentation