Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Vue 3) expand_more
Vue 3 / SFC & Templates

Single-file components

Learn Single-file components in Vue 3 with a dedicated explanation, a concept-specific example, a production caution, and a mastery check.

12 min read • Beginner
vue-3-001.vue
vue
<script setup>
const title = "Invoice"
</script>
<template><h1>{{ title }}</h1></template>
<style scoped>h1{font-weight:700}</style>
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content