Interface InputCustomProps<T>

interface InputCustomProps<T extends string> {
    children?: undefined;
    error?: boolean;
    label?: string;
    onSuggestionMatch?: (
        value: Exclude<T, ObjectValue>,
        __chromiumPickedFromList: boolean,
    ) => void;
    pinnedLabel?: boolean;
    prefix?: ReactNode;
    suffix?: ReactNode;
    suggestions?: Value<T>[];
}

Type Parameters

  • T extends string

Properties

children?: undefined
error?: boolean
label?: string
onSuggestionMatch?: (
    value: Exclude<T, ObjectValue>,
    __chromiumPickedFromList: boolean,
) => void
pinnedLabel?: boolean

When true (default), the label stays anchored to the top of the input. When false, the label sits inside the input like a placeholder and floats up on focus or when the input has a value.

prefix?: ReactNode
suffix?: ReactNode
suggestions?: Value<T>[]