Skip to content

Docs: tab Vue examples between the Options API and the Composition API #150

Open

Description

@JuroOravec

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.
  • Separate PR from the Vue migration.

Activity

  1. added
    next-sprint
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions