TextField
<TextField /> is a component that user can enter and edit letters, numbers, and symbols.
Loading...
How to use
import { TextField } from '@vibrant-ui/components';
Properties
| Prop | Type | Default | Description | 
|---|---|---|---|
| label | string|undefined | undefined | Display label | 
| placeHolder | string|undefined | undefined | Informative text before user enter something | 
| type | text|email|url|number | text | Set input type of TextField. Related keyboard is provided in dynamic keypad ( For passwordtype, read PasswordField component ) | 
| clearable | boolean | false | Set activation status of the clear button. Clear button only appears when TextField has value | 
| prefix | string|undefined | undefined | Set prefix text | 
| suffix | string|undefined | undefined | Set suffix text | 
| renderStart | () => ReactElementChild|undefined | undefined | Set element in the left of the TextField | 
| renderEnd | () => ReactElementChild|undefined | undefined | Set element in the right of the TextField | 
| autoCapitalize | none|character|sentences|words | none | Set how the first letter of the input is automatically capitalized | 
| autoComplete | noneemailpasswordnewPasswordusernamenamefamilyNamegivenNamemiddleNamenamePrefixnameSuffixccNumberccExpccExpMonthccExpYearccCscpostalCodeaddressCountryaddressRegionaddressCityaddressStreetaddressExtendedotptelbirthDayDaybirthDayMonthbirthDayYearbirthDayFull | none | Set input form to enable the user's agent (broswer, platform) to complete automatically | 
| readOnly | boolean | false | Set availability of editing | 
Example Usage
Loading...