UNPKG

chatui2

Version:

The React library for Chatbot UI

18 lines (17 loc) 736 B
import React from 'react'; export type InputVariant = 'outline' | 'filled' | 'flushed'; export type InputRef = HTMLInputElement | HTMLTextAreaElement; export interface InputProps extends Omit<React.InputHTMLAttributes<InputRef>, 'onChange'> { variant?: InputVariant; rows?: number; minRows?: number; maxRows?: number; maxLength?: number; showCount?: boolean; multiline?: boolean; autoSize?: boolean; onChange?: (value: string, event: React.ChangeEvent<InputRef>) => void; inputFeaturesRender?: React.ReactNode; inputControllerRender?: (sendRender: React.ReactNode) => React.ReactNode; } export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>>;