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

Move component props into separate files #2

Open
matteason opened this issue Apr 13, 2023 · 1 comment
Open

Move component props into separate files #2

matteason opened this issue Apr 13, 2023 · 1 comment
Labels
code-quality Improvements to code quality

Comments

@matteason
Copy link
Member

Some components are reused frequently (hint, error message etc). Move their props out to a separate file so they can be included in other components' prop lists easily without having to redefine all the props. Consider doing this for all components to improve experience for consumer apps that may want to wrap other components

@matteason matteason added the code-quality Improvements to code quality label Apr 13, 2023
@matteason
Copy link
Member Author

I'm not sure this is possible with how docs are generated at the moment.

We use vue-docgen to parse props from components, which does static analysis and doesn't follow imports etc. It would be great to be able to do this in the future but it would probably require an enhancement to vue-docgen

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

No branches or pull requests

1 participant