You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs: tab Vue examples between the Options API and the Composition API #150
Many docs examples show component JavaScript written with Vue's Options API (data(), methods, computed). Readers who use the Composition API (setup(), ref, computed()) have to translate each example themselves.
Show component JavaScript examples as tabbed code blocks, one tab per API, so a reader picks the style they use once and keeps it.
Decide which pages get tabs: every example with component JavaScript, or only the Vue integration and component-authoring pages first.
Add or reuse a tabbed code block in the docs site (it has tab machinery for other examples; check whether it can remember the reader's choice across pages).
Keep both variants executable or checked, so they don't drift apart.
Activity