--- name: Form Components description: Input, selection, and form control components --- # Form Components ## input Single-line text input. ```vue ``` **Properties:** | Property | Type | Default | Description | |----------|------|---------|-------------| | value | String | | Input value | | type | String | text | Input type: text/number/idcard/digit/tel | | password | Boolean | false | Password input | | placeholder | String | | Placeholder text | | placeholder-style | String | | Placeholder inline styles | | placeholder-class | String | | Placeholder CSS class | | maxlength | Number | 140 | Max character length | | cursor-spacing | Number | 0 | Cursor distance from keyboard bottom (px) | | focus | Boolean | false | Auto focus | | confirm-type | String | done | Return key type: send/search/next/go/done | | confirm-hold | Boolean | false | Keep keyboard open after confirm | **Events:** - `@input` - Input value change - `@focus` - Input focused - `@blur` - Input blurred - `@confirm` - Confirm button clicked - `@keyboardheightchange` - Keyboard height changed ## textarea Multi-line text input. ```vue