We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Say you have a component which has formatting and size props.
formatting
size
It would be nice to be able to see variants of each prop in separate section, rather than just all run together.
I suggest a new <Chapter> component (seeing as group is already another term in Histoire):
<Chapter>
<template> <Story :layout="{ type: 'grid', width: '400' }"> <Chapter title="Formatting"> <Variant title="default"> <UiFigure>0.151351483</UiFigure> </Variant> ... </Chapter> <Chapter title="Size"> <Variant title="default"> <UiFigure size="xl">0.151351483</UiFigure> </Variant> ...
The page would then show each set of props with a title and the variants nested within.
Or maybe <Chapter> could be <Variants> or <VariantGroup>.
<Variants>
<VariantGroup>
None
Here's an example of where we would find this useful:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Clear and concise description of the problem
Say you have a component which has
formatting
andsize
props.It would be nice to be able to see variants of each prop in separate section, rather than just all run together.
Suggested solution
I suggest a new
<Chapter>
component (seeing as group is already another term in Histoire):The page would then show each set of props with a title and the variants nested within.
Or maybe
<Chapter>
could be<Variants>
or<VariantGroup>
.Alternative
None
Additional context
Here's an example of where we would find this useful:
Validations
The text was updated successfully, but these errors were encountered: