Skip to content

Filter and search components by tag #7711

Open

Description

Is your feature request related to a problem? Please describe.
Right now, there isn't a way to filter or search through filtered items in the left navigation. While searching is available to find a specific component, it searches through all available components.

Describe the solution you'd like
I would like the ability to filter AND search filtered options based on tag.

For example, the tag could be used to filter components by platform. I imagine by default, it would be set to show all components - but if I want to see just components that support Android, I could select that filter to only show me Android components. For a design system that supports different platforms, this means it's not possible to just see components that are Android, iOS, or web.

When selecting an Android-only component, the viewport should show me a view corresponding to Android. When selecting a component that only supports a web component, I should not be able to toggle my view to a mobile view.

Basically, at a glance, I should be able to see what components are supported based on platform.

Describe alternatives you've considered

  • A separate Storybook per tag (messy, duplicate documentation)
  • Using the default SB hierarchy and duplicate components based on tag (makes left nav very long, hard to read)

Are you able to assist bring the feature to reality?
Yes

Additional context
I would love to be able to filter the left nav like this: https://backpack.github.io/components/accordion/?platform=web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions