Giter Site home page Giter Site logo

twihike / chat-ui-react Goto Github PK

View Code? Open in Web Editor NEW
89.0 89.0 28.0 4.93 MB

๐Ÿ’ฌ React component for conversational UI

Home Page: https://chat-ui-react-demo.netlify.app/

License: MIT License

JavaScript 17.33% TypeScript 82.67%
bot chat material-ui react

chat-ui-react's People

Contributors

twihike avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chat-ui-react's Issues

formated messsage

Hi,
is there easy way how to use messages with wikimarkup, or add time, users, tags to messages except rewriting MUIChat and MUIMessage component?

Warning: validateDOMNesting(...) when using JSXMessage

Hi,
when using JSXMessage a Warning: validateDOMNesting(...) is raised if the JSX element used as content uses elements that cannot be descendant of <p>.
I think it's caused by these lines in MuiMessage.tsx :

<Typography variant="body1" style={{ overflowWrap: 'break-word', whiteSpace: 'pre-wrap' }} > {/* eslint-disable-next-line @typescript-eslint/ban-types */} {message.content as object} </Typography>

Probably if the message.content isn't a string it would be better to use a generic <div> and not a <Typography> that produces a <p> element.
Thanks.

Datatype field for MUI TextField

Can we add datatype information which we can pass in ActionRequest as is and use it in textfield (removing multiline and adding type as datatype will do)? Because a person may ask type 'password' or a type 'number' in the chat.

Thanks!`

How to pass message list to chat controller?

I want to pass message list to chat controller and render it. But I'm not able to do so.
chatCtl.state.messages = response.data.Response.messages.map( (item) => ({ type: 'text', content: item.Description, self: item.Sender, createdAt: new Date(), }) );

The list is rendered only after a new message is typed and sent.

React 18

Can we update package to work with react 18?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.