Hover and click events?

I didn’t see anything about this in the API documentation, but perhaps I missed it. I love the functionality of the button, but is there anything to detect a more arbitrary hover or click event?

Some example use cases:

  1. Hover on a matplotlib to get a bunch of metadata about how it was generated
  2. Click on a sample to replace it with more stats about it. Click on the stats to toggle it back to stats

Thanks!

Hey @kossnick

With this question and some of your other ones in this forum you’re pretty much just going through our feature roadmap :smiley:

The ability to use different elements as inputs is something we have some early API designs for, but it will take a few months until we implement anything in that direction.

In the meantime, I’ve created a feature request so people can follow our progress over there: https://github.com/streamlit/streamlit/issues/455

Another direction is to have Streamlit support plugins, which has its own feature request over here: https://github.com/streamlit/streamlit/issues/327