This example showcases Astro's built-in support for Vue.
Bootstrap your Astro project with this template!
npm init astro -- --template framework-vue
To use Vue components in your Astro project:
-
Install
@astrojs/renderer-vue
npm i @astrojs/renderer-vue
-
Add
"@astrojs/renderer-vue"
to yourrenderers
inastro.config.mjs
.export default { renderers: [ "@astrojs/renderer-vue", // optionally, others... ] }
Write your Vue components as .vue
files in your project.