Storybook tags, filter UI, and badges #30091
Replies: 3 comments 12 replies
-
Thank you for your work. I would like to have a regex exclude filter option for tags in the sidenav Tag dropdown menu, because we have internal tags that we don't want to show. Also, it would be great to have a tag like "test-only" or "internal" that displays stories in the sidenav only when they are checked (so that testers can toggle them on, but normal users don't in default. Other use cases: I have made a docs component that shows various tags above the docs title as chips, also some tag-chips above each story-title in the docs. It reads from the story/meta. Would be great if there was a storybook block or option in stories-block, maybe with the tags addon (great work, frog!). For the Controls/Argtypes tables, I enhance my Argtypes descriptions with various jsdoc tags and their info (filling the missing gap from compodoc.json) like deprecated, since (version XY), param. I display them in different colors and styles as chips to give my users more info about the argtype. Would be great if a) you could specify in preview which tags to include (like exclude internal, ignore (I know, this can be done via compodoc build options), include deprecated or version, and we would have these jsdoc info generated the same for all frameworks and b) set global styles to these tags like in the tags addon, maybe the same like create theme options. Wish you happy holidays! |
Beta Was this translation helpful? Give feedback.
-
Making a dedicated thread to discuss Use casesBrought up by @smlimasu but also something I've experienced as a library maintainer.
OpportunitiesHaving built-in tags support would allow showing badges in the ArgsTable next to props, and possibly also in the controls description, though likely with extra development effort or additional work in stories files. ChallengesSince |
Beta Was this translation helpful? Give feedback.
-
Thank you for this valuable contribution! The tagging system is particularly useful for organizing stories. However, I'd like to expand on @smlimasu feedback regarding story visibility control. Current Challenge: Feature Request:
This would significantly improve the user experience for teams using Storybook in production environments while maintaining the ability to access test stories when needed. Has there been any consideration for implementing this kind of filtering system? Happy to provide more context about our use case if helpful. Thanks again for maintaining this project! |
Beta Was this translation helpful? Give feedback.
-
In Storybook 8.4 we released Storybook tags with interactive filter UI, plus an addon for badges in the sidebar. (docs, addon).
Curious if you're finding tags useful, whether you have requests, and if you have use cases that you can share with the community!
Beta Was this translation helpful? Give feedback.
All reactions