import { Canvas, Meta, ArgTypes } from '@storybook/blocks'; import { ThemeProvider } from 'styled-components'; import ChatBubble from './'; import MessageAttachment from '../MessageAttachment'; import { lightTheme } from '../../../../theme'; import { GlobalStyles } from '../../../../theme/GlobalStyles'; import * as ChatBubbleStories from './ChatBubble.stories.tsx'; # ChatBubble The ChatBubble component displays incoming and outgoing chat messages and data. It also determines the style of the bubble including color, chat bubble tail visibility, and name visibility. ChatBubbles support tooltips on any buttons by adding a `data-tooltip` property. Adding a `data-tooltip-position` property controls the tooltip position ## Importing ```javascript import { ChatBubble, MessageAttachment, } from 'amazon-chime-sdk-component-library-react'; ``` ## Example I've always been your biggest flan. You should have put him in custardy. This is an outgoing message with attachment ```jsx I've always been your biggest flan. You should have put him in custardy. This is an outgoing message with attachment ``` ## Props