Function inputField

  • Creates an input field component for text input.

    Parameters

    • props: UiInputFieldProps

      Configuration object

    Returns Element

    A JSX element representing the input field component

    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
    });