Skip to content

Single Column Chat

A chat of this format is the most concise possible and takes up the least space. There are many applications for a single-column chat: embedding in existing applications for feedback, requests, etc., integration with a chat bot, quick reply form and various other tasks. Since this layout has only one column, it is most appropriate to place the main chat component Feed and input field ChatInput in it.

If desired, the interface can be supplemented with chat information, action buttons and other components from storybook.

Below is an example of a single-column chat with a minimal set of functions: the user can only type a message, attach a file and select an emoji in a pre-defined chat.

Изображение

Code Structure of Typical Chat in Feed Layout

vue
<template>
  <FloatContainer>
    <FeedLayout>
      <template #default>
        <chat-wrapper>
          <template #default>
            <ThemeMode />
            <Feed />
            <ChatInput>
              <template #buttons>
                <FileUploader />
                <ButtonEmojiPicker />
                <!--Additional elements possible-->
              </template>
            </ChatInput>
          </template>
        </chat-wrapper>
      </template>
    </FeedLayout>
  </FloatContainer>
</template>