aboutsummaryrefslogtreecommitdiff
path: root/examples/framework-vue/README.md
blob: 2c6240f012f713d517fcd4b69a23719beeafe2ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Using Vue with Astro

This example showcases Astro's built-in support for [Vue](https://v3.vuejs.org/).

## Installation

### Automatic

Bootstrap your Astro project with this template!

```shell
npm init astro -- --template framework-vue
```

### Manual

To use Vue components in your Astro project:

1. Install `@astrojs/renderer-vue`

    ```shell
    npm i @astrojs/renderer-vue
    ```

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

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

## Usage

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