Build UI Component Library VUE

Viewed 130

I’m creating a library of components with vue. The real question is how to create documentation. It is more correct to create a docs folder and then create a new project (for example in nuxt), or have only one package.json in the root and then instantiate in the docs folder a new createApp with vue? The components I create in the library text them directly in the creation of documentation?

2 Answers

hi you can create custom block it is create an extra tag beside template javascript and style you can add doc for each component you can read more about custom block from here

You can use VitePress to build docs for your component library.

You can refer to this GitHub repo for inspiration: Anu

Docs Demo: Anu

Related