Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@fluentui-contrib/react-chat

microsoft28.5kMIT0.2.2TypeScript support: included

Chat component powered by Fluent UI and used in Microsoft Teams.

readme

@fluentui-contrib/react-chat

Chat component powered by Fluent UI and used in Microsoft Teams.

Try it out

yarn add @fluentui-contrib/react-chat

npm install @fluentui-contrib/react-chat
import * as React from 'react';
import { Avatar } from '@fluentui/react-components';
import { Chat, ChatMessage, ChatMyMessage } from '@fluentui-contrib/react-chat';

export const SampleChat = () => {
  return (
    <Chat>
      <ChatMessage avatar={<Avatar name="Ashley McCarthy" badge={{ status: 'available' }} />}>Hello I am Ashley</ChatMessage>
      <ChatMyMessage>Nice to meet you!</ChatMyMessage>
    </Chat>
  );
};