interface InputTextProps {
    autoComplete?: string;
    characterLimit?: number;
    className?: string;
    defaultValue?: string;
    errorText?: string;
    inputType?: "search" | "text" | "hidden" | "password" | "multiline" | "operation";
    isDisabled?: boolean;
    isRequired?: boolean;
    label?: string;
    labelWeight?: "bold" | "regular";
    name?: string;
    onChange?: ((value, name?) => void);
    onEnter?: ((value, name?) => void);
    onOperationClick?: (() => void);
    onShowPasswordClick?: (() => void);
    operationText?: string;
    placeholder?: string;
    postfixText?: string;
    readonly?: boolean;
    showPassword?: boolean;
    value?: string;
}

Properties

autoComplete?: string

HTML autocomplete property

characterLimit?: number

Character Limit

className?: string

Custom class to give the html component

defaultValue?: string

Default value. This is used for initially setting up the input when used without controlled value. If you want to use controlled value, use value prop instead.

errorText?: string

Error text

inputType?: "search" | "text" | "hidden" | "password" | "multiline" | "operation"

Input type

isDisabled?: boolean

Is input disabled

isRequired?: boolean

Shows red required mark

label?: string

Label of the input field

labelWeight?: "bold" | "regular"

Configurable label weight

name?: string

Input name

onChange?: ((value, name?) => void)

On Input change callback

Type declaration

    • (value, name?): void
    • On Input change callback

      Parameters

      • value: string
      • Optional name: string

      Returns void

onEnter?: ((value, name?) => void)

On enter pressed callback

Type declaration

    • (value, name?): void
    • On enter pressed callback

      Parameters

      • value: string
      • Optional name: string

      Returns void

onOperationClick?: (() => void)

Operation onClick callback

Type declaration

    • (): void
    • Operation onClick callback

      Returns void

onShowPasswordClick?: (() => void)

Show password onClick callback

Type declaration

    • (): void
    • Show password onClick callback

      Returns void

operationText?: string

Operation text

placeholder?: string

Placeholder

postfixText?: string

Text to place after the component

readonly?: boolean

Set input to readonly

showPassword?: boolean

Show password

value?: string

Input value

Generated using TypeDoc