How to make chat like UI with chat bubbles in React JS
I have some JSON data in dummyData. I am not sure how can I place the chat bubbles on left and right according to the direction. I am using Material UI and context API. Image for the reference. I don't want to use any library other than material UI. Currently, every chat bubble is positioned to the left. How to position bubbles according to the direction. Code so far (CodeSandbox): import React from 'react'; import makeStyles from '@material-ui/core/styles/makeStyles'; const useStyles = makeStyles(theme => ({ container: { bottom: 0, position: 'fixed' }, bubbleContainer: { width: '100%' }, bubb
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.