Skip to content
Haven't migrated to Vue 3 yet?
Explore Never-Ending Support for Vue 2 by HeroDevs
Learn more
Vue.js
Search
Ctrl
K
Main Navigation
Docs
Guide
Tutorial
Examples
Quick Start
Glossary
Vue 2 Docs
Migration from Vue 2
API
Playground
Ecosystem
Resources
Partners
Themes
Certification
Jobs
T-Shirt Shop
Official Libraries
Vue Router
Pinia
Tooling Guide
Video Courses
Vue Mastery
Vue School
Help
Discord Chat
GitHub Discussions
DEV Community
News
Blog
Twitter
Events
Newsletters
About
FAQ
Team
Releases
Community Guide
Code of Conduct
The Documentary
Sponsor
Partners
简体中文
日本語
Українська
Français
한국어
Português
বাংলা
Italiano
Help Us Translate!
github
twitter
discord
Appearance
github
twitter
discord
Menu
On this page
On this page
Table of Contents for current page
Basic Syntax
Reactivity
Using Components
Using Custom Directives
defineProps() & defineEmits()
defineExpose()
defineOptions()
defineSlots()
useSlots() & useAttrs()
Usage alongside normal <script>
Top-level await
Generics
Restrictions
Sponsors
Become a Sponsor
WPMU DEV: Speed up, secure and manage all your WordPress sites. Just $10/month.
ads via Carbon
<script setup>