Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow ignoring some preview from showing up in the Showkase component list #172

Closed
StylianosGakis opened this issue Sep 21, 2021 · 1 comment

Comments

@StylianosGakis
Copy link

My use case is that I may have one specific composable, but with a various number of different configurations, with different parameters etc, meaning many separate @Preview functions on one composable. On the showkase component list however, it'd be nice to only have one of them, while ignoring the rest, to make it easier to navigate and find what I am looking for without duplacation.

An extra annotation @ShowkaseIgnore or something similar comes to mind first, but maybe there's a better way to approach this.

@StylianosGakis
Copy link
Author

Okay I just realised one can annotate a preview with both @ShowkaseComposable and @Preview and simply set skip to true on the former. Nevermind!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant