chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Best approach to include UI like infoboxes, warning boxes in bot output

Open nmstoker opened this issue 1 year ago • 0 comments

I see that you can use a custom React front-end, but within the normal Chainlit UI what is the best general approach one should take to go about including slightly richer UI elements like infoboxes, warning boxes and such like in bot responses? I guess ideally I would want some sort of template that contains the styling for all the sub-elements and then the response text is fed into that, would that be a reasonable, sensible way to go?

Has anyone tried this and/or do you have any pointers on how best to start with this?

nmstoker avatar Apr 15 '24 22:04 nmstoker