Skip to content

A2Input

Basic input field component.

Props

PropertyTypeDefaultDescription
propstring-Form data key
placeholderstring-Input placeholder
type`textpasswordnumber`
disabledbooleanfalseDisabled state
clearablebooleanfalseClear button

Basic Example

Basic Input
无内容

Password Input Example

Password Input
无内容

JSON Schema

json
{
  "id": "inputId",
  "type": "a2-input",
  "props": {
    "prop": "fieldName",
    "placeholder": "Enter value",
    "type": "text",
    "clearable": true
  }
}

A2UI Documentation