chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Make custom elements a first class citizen

Open josca42 opened this issue 5 months ago • 6 comments

Quickly creating beautiful UI elements in claude and adding them as custom elements in chainlit enables creating beautiful UX flows that differentiate from the just another chat bot experience. A quick example of this is shown in this video .

Claude natively uses shadcn and recharts so everything almost work out of the box but a few key changes are needed. More tailwind styling needs to be made available to the custom elements. And since a lot of chainlit users will likely be using it related to analysis workflows - preferring chainlit to streamlit etc. - then the charting functionality used by claude should be available. This means recharts and the shadcn chart component.

This also addresses #2328

josca42 avatar Aug 21 '25 09:08 josca42

As promised @asvishnyakov

josca42 avatar Aug 21 '25 09:08 josca42

If these changes are something you would like to add then I'd be happy to create some good docs on how to use this kind of workflow to quickly create custom UI elements that you can integrate in your chatbot :-).

josca42 avatar Aug 21 '25 10:08 josca42

Thanks for this contribution @josca42 this looks very promising! Do you have some examples code to run and see how this works?

Docs/Cookbook will be very helpful for the community once this is released for sure.

hayescode avatar Aug 22 '25 01:08 hayescode

some example usage would be great. currently I'm not sure how to use this component.

sandangel avatar Aug 26 '25 21:08 sandangel

This PR is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Sep 11 '25 02:09 github-actions[bot]

any update on this?

sergiossm avatar Sep 30 '25 15:09 sergiossm