chainlit
chainlit copied to clipboard
Creating a button to redirect to other page inside chainlite UI
I want to create a button to redirect to other page inside chainlit UI. I found in the documentation that we can indeed add a button but to a external link.
I wanted to achieve a double-page app where the user could navigate between the chatbot and the other page.
Is there a way to achieve these without forking the repo?
Have you checked out the custom elements and custom JS docs? You could probably achieve something like an element which pops up another site in a modal (or similar) in JSX like that. The other approach that springs to mind is embedding the cl window in another page - however at that point you might be better off starting from the custom front end example and vibe coding a split screen UI.
I end up having to fork the repo to be able to customize how I wanted. Thank you for your insights still @francisjervis