interface InputProps<T> {
    defaultValue?: string;
    disabled?: boolean;
    id: string;
    label: string;
    onChange?: ((event) => void);
    onKeyDown?: ((event) => void);
    passRef?: LegacyRef<T>;
    placeholder?: string;
    title?: string;
    value?: string;
}

Type Parameters

  • T extends HTMLElement = HTMLElement

Hierarchy (view full)

Properties

defaultValue?: string
disabled?: boolean
id: string
label: string
onChange?: ((event) => void)

Type declaration

    • (event): void
    • Parameters

      • event: ChangeEvent<Element>

      Returns void

onKeyDown?: ((event) => void)

Type declaration

    • (event): void
    • Parameters

      • event: KeyboardEvent<HTMLInputElement>

      Returns void

passRef?: LegacyRef<T>
placeholder?: string
title?: string
value?: string