vue-options-api-best-practices

Originally fromhyf0/vue-skills
Installation
Summary

Vue 3 Options API patterns, TypeScript integration strategies, and context-binding gotchas.

  • Covers TypeScript type safety for component properties, this context, prop validators, event handlers, complex types, provide/inject, and computed return types
  • Addresses common method and lifecycle hook pitfalls: arrow function binding issues, context loss, and stateful method state leakage across instances
  • Organized as a reference guide with linked examples for each pattern and anti-pattern
SKILL.md

Vue.js Options API best practices, TypeScript integration, and common gotchas.

TypeScript

Methods & Lifecycle

Related skills
Installs
5.0K
Repository
vuejs-ai/skills
GitHub Stars
2.4K
First Seen
Jan 28, 2026