A2Button
Button component with action support.
Props
| Property | Type | Default | Description |
|---|---|---|---|
text | string | - | Button text |
type | `primary | success | warning |
size | `large | default | small` |
disabled | boolean | false | Disabled state |
icon | string | - | 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"
}
}