Skip to main content

TextField

Components

TextField()

TextField(props, context?): ReactNode

The TextField component create versatile and highly-customizable inputs that can be used in forms or any place that requires an input. It supports both single-line and multi-line text input, as well as additional features like labels, captions, and validation status. The component accepts all props of an Input component, plus more.

Parameters

ParameterType
propsTextFieldProps
context?any

Returns

ReactNode

Example

<TextField type="text" required={true} label={'Username'} placeholder={'Please enter your username...'} />

Source

libs/design-system-core/src/components/TextField/index.tsx:34