Appearance
Function: inputField()
ts
function inputField(props: UiInputFieldProps): Element;Defined in: src/UI/blocks/input.tsx:45
Input field component for text input.
Parameters
| Parameter | Type | Description |
|---|---|---|
props | UiInputFieldProps | Configuration 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
});