How to implement filters like the Leetcode UI?

:rotating_light: Before clicking “Create Topic”, please make sure your post includes the following information (otherwise, the post will be locked). :rotating_light:

  1. Are you running your app locally or is it deployed? Locally
  2. If your app is deployed:
    a. Is it deployed on Community Cloud or another hosting platform?
    b. Share the link to the public deployed app.
  3. Share the link to your app’s public GitHub repository (including a requirements file).
  4. Share the full text of the error message (not a screenshot).
  5. Share the Streamlit and Python versions. - All latest versions

I want to implement the filter options like the following. It shows all available tags and item counts associated with it. When user clicks on it (ex. “array”), it will add add the selected tags to the URL parameter and open a new subpage: https://leetcode.com/tag/array/. Is it possible in Streamlit?