Dynamic filter tabs from CMS

Hello! I want my users to be able to filter the content on the website based on tags. I have one collection for blogposts, and one for tags. I would like to have the filter buttons dynamically generated from the tags collection, and each button to show posts with that tag. Is there anyway to do this? Right now I have tabs with a filtered collection list in each tab pane, but the tabs are not generated based on what is in the collection tags.