组件库文档选型
type
status
date
slug
summary
tags
category
icon
password
Blocking
Blocked by
top
URL
Sub-item
Parent item
原理
组件库文档原理有两种:
- MarkDown里写jsx
代表库:dumi、vitepress
- jsx里写MarkDown
代表库:storybook、docz
总结
docz | story book | docz | vitepress | dumi |
支持编写的组件库类型 | all | React | Vue | React |
轻量级 / 开发者友好 | ❌ | ✅ | ✅ | ✅ |
组件Demo预览 | ✅ | ✅ | ❌ 需要通过插件 | ✅ |
自动生成组件库 API | ✅ | ✅ | ❌ 需要通过插件 | ❌ 实验阶段 |
支持除了组件库文档的其他类型文档的编写 | ✅ | ✅ | ✅ | ✅ |