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
Ability to add docs #49
Comments
Can you explain a bit more what you want to do? Under the hood, the addon translates vue story files into the classical Component Story Format. But I don't think that CSF provides a way to specify documentation. |
Even adding the description would be a nice start (available in story params). But with MDX you can document various use-cases as freeform text, sprinkling in the component between text blocks. That'd be ideal for us. An example use-case would be describing the UX rules behind validation errors, where we'd want to show different cases (e.g. the whole field component in an error state, with the validation error being displayed vs just the input field's border indicating a validation error) and explain when to display each. |
And how do you want to declare the documentation part? Do you just want to have a |
Support for a |
It'd be great if we could easily add documentation in our SFC stories, akin to the MDX experience. Maybe a
<Docs>
component could help us more easily extract this?The text was updated successfully, but these errors were encountered: