TangleSpace / hydralit_components

A package of custom components for Streamlit and Hydralit. Can be used directly or in combination with the Hydralit package.
Apache License 2.0
185 stars 21 forks source link

Navigate to External Link in New Tab #31

Open benlindsay opened 5 months ago

benlindsay commented 5 months ago

First, thanks for all the work on this and other packages!

I'd love to be able to add external links to the navbar, especially as submenu items, and have them open in a new tab. Is this possible in current state?

This is similar to https://github.com/TangleSpace/hydralit_components/issues/14, but doing an iframe in page wouldn't solve my particular use case since I want to open in a separate tab.

Partially related, it would be nice to be able to add text that's not clickable, just for information, like a title or version number. For both an external link and unclickable text, I would expect those not to change the state of the navbar or the return value since they're don't navigate anywhere within page.

Any thoughts or information appreciated!