chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Custom Elements

Open underthesand opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. I would like to create custom elements because the elements provided by Chainlit are too generic and do not align with my company's needs. For example, a custom video player or custom charts using JavaScript libraries.

Describe the solution you'd like A solution similar to a Streamlit component would be ideal. The idea is to be able to inject a React component that could access the Chainlit context (messages, user, etc.). This could lead to the creation of a community store, which would be a great addition to the project.

underthesand avatar Apr 28 '24 07:04 underthesand

Have you tried the unsafe_allow_html feature to display html in messages? Would this solve your problem for now?

tpatel avatar Apr 29 '24 08:04 tpatel

So any update on this? Being able to show html and interactive elements would be a big plus given how much doors it opens. I tried the unsafe_allow_html, but so far it's not working.

WNIsayid avatar Aug 21 '24 05:08 WNIsayid

any update here?

hrokni avatar Sep 18 '24 07:09 hrokni