Skip to main content

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

PropTypeDefaultDescription
labelstring | undefinedundefinedDisplay label
placeHolderstring | undefinedundefinedInformative text before user enter something
typetext | email | url | numbertextSet input type of TextField. Related keyboard is provided in dynamic keypad ( For password type, read PasswordField component )
clearablebooleanfalseSet activation status of the clear button. Clear button only appears when TextField has value
prefixstring | undefinedundefinedSet prefix text
suffixstring | undefinedundefinedSet suffix text
renderStart() => ReactElementChild | undefinedundefinedSet element in the left of the TextField
renderEnd() => ReactElementChild | undefinedundefinedSet element in the right of the TextField
autoCapitalizenone | character | sentences | wordsnoneSet how the first letter of the input is automatically capitalized
autoCompletenone email password newPassword username name familyName givenName middleName namePrefix nameSuffix ccNumber ccExp ccExpMonth ccExpYear ccCsc postalCode addressCountry addressRegion addressCity addressStreet addressExtended otp tel birthDayDay birthDayMonth birthDayYear birthDayFullnoneSet input form to enable the user's agent (broswer, platform) to complete automatically
readOnlybooleanfalseSet availability of editing

Example Usage

Loading...
Previous
Table (+ VirtualizedTable)