|
|
|
@ -55,8 +55,8 @@ A basic widget for getting the user input is a text field. Keyboard and mouse ca
|
|
|
|
|
| defaultValue | The initial input content | string | - | |
|
|
|
|
|
| disabled | Whether the input is disabled | boolean | false | |
|
|
|
|
|
| id | The ID for input | string | - | |
|
|
|
|
|
| maxLength | The max length | number | - | |
|
|
|
|
|
| showCount | Whether show text count | boolean \| { formatter: (info: { value: string, count: number, maxLength?: number }) => ReactNode } | false | 4.18.0 info.value: 4.23.0 |
|
|
|
|
|
| maxLength | The maximum number of characters in Input | number | - | |
|
|
|
|
|
| showCount | Whether to show character count | boolean \| { formatter: (info: { value: string, count: number, maxLength?: number }) => ReactNode } | false | 4.18.0 info.value: 4.23.0 |
|
|
|
|
|
| status | Set validation status | 'error' \| 'warning' | - | 4.19.0 |
|
|
|
|
|
| styles | Semantic DOM style | Record<[SemanticDOM](#input-1), CSSProperties> | - | 5.4.0 |
|
|
|
|
|
| prefix | The prefix icon for the Input | ReactNode | - | |
|
|
|
|
@ -80,8 +80,8 @@ The rest of the props of Input are exactly the same as the original [input](http
|
|
|
|
|
| bordered | Whether has border style | boolean | true | 4.5.0 |
|
|
|
|
|
| classNames | Semantic DOM class | Record<[SemanticDOM](#inputtextarea-1), string> | - | 5.4.0 |
|
|
|
|
|
| defaultValue | The initial input content | string | - | |
|
|
|
|
|
| maxLength | The max length | number | - | 4.7.0 |
|
|
|
|
|
| showCount | Whether show text count | boolean \| { formatter: (info: { value: string, count: number, maxLength?: number }) => string } | false | 4.7.0 formatter: 4.10.0 info.value: 4.23.0 |
|
|
|
|
|
| maxLength | The maximum number of characters in TextArea | number | - | 4.7.0 |
|
|
|
|
|
| showCount | Whether to show character count | boolean \| { formatter: (info: { value: string, count: number, maxLength?: number }) => string } | false | 4.7.0 formatter: 4.10.0 info.value: 4.23.0 |
|
|
|
|
|
| styles | Semantic DOM style | Record<[SemanticDOM](#inputtextarea-1), CSSProperties> | - | 5.4.0 |
|
|
|
|
|
| value | The input content value | string | - | |
|
|
|
|
|
| onPressEnter | The callback function that is triggered when Enter key is pressed | function(e) | - | |
|
|
|
|
|