Skip to content

Function: inputField()

ts
function inputField(props: UiInputFieldProps): Element;

Defined in: src/UI/blocks/input.tsx:45

Input field component for text input.

Parameters

ParameterTypeDescription
propsUiInputFieldPropsConfiguration object

Returns

Element

Examples

Basic usage with required props

inputField({
  name: 'firstName',
  label: 'First Name',
  type: 'text'
});

Usage with default value

inputField({
  name: 'email',
  label: 'Email Address',
  type: 'email',
  defaultValue: 'example@example.com',
  placeholder: 'Enter your email',
  required: true,
  disabled: false
});

Matterway Assistant SDK Documentation