0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples/framework-vue
..
public
src
.gitignore
.npmrc
astro.config.mjs
package.json
README.md
tsconfig.json

Using Vue with Astro

This example showcases Astro's built-in support for Vue.

Installation

Automatic

Bootstrap your Astro project with this template!

npm init astro -- --template framework-vue

Manual

To use Vue components in your Astro project:

  1. Install @astrojs/renderer-vue

    npm i @astrojs/renderer-vue
    
  2. Add "@astrojs/renderer-vue" to your renderers in astro.config.mjs.

    export default {
      renderers: [
        "@astrojs/renderer-vue",
        // optionally, others...
      ]
    }
    

Usage

Write your Vue components as .vue files in your project.