• A chat input component that submits when the user presses enter. It also supports a modifier key (ctrl or cmd + enter) to allow the user to enter to submit while still allowing them to enter new lines (shift + enter).

    Parameters

    • props: {
          modifierKey?: boolean;
          onSubmit: (() => void);
          [name: string]: any;
      }
      • [name: string]: any
      • Optional modifierKey?: boolean
      • onSubmit: (() => void)
          • (): void
          • Returns void

    Returns Element

Generated using TypeDoc