Creates an input field component for text input.
Configuration object
A JSX element representing the input field component
Basic usage with required props
inputField({ name: 'firstName', label: 'First Name', type: 'text'}); Copy
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}); Copy
inputField({ name: 'email', label: 'Email Address', type: 'email', defaultValue: 'example@example.com', placeholder: 'Enter your email', required: true, disabled: false});
Creates an input field component for text input.