@builder.io/vue

Builder.io drag and drop page and section building for Vue.
5,343 8,871
Install
npm install @builder.io/vue
Latest Version:0.1.12
Vue:2
Last Updated:Oct 21, 2026
Links: GitHub  ·  npm
Maintainer: steve8708

Builder.io Vue SDK

Builder.io drag and drop page and section building for Vue.

NOTE: If you are looking for the beta 2.0 Vue SDK, you can find it here

Get started

npm install @builder.io/vue

Usage

<template>
  <RenderContent model="page" />
</template>

<script>
import { builder, RenderContent } from '@builder.io/vue';
import Vue from 'vue';

// Enter your Builder.io public API key
builder.init(YOUR_KEY);

export default Vue.extend({
  components: { RenderContent },
});
</script>

Example

Take a look at this in practice in an example you can run with our Nuxt example

Options

The RenderComponent component also takes additional options and emits events when content loads or errors

<template>
  <RenderContent
    model="page"
    @contentLoaded="contentLoaded"
    @contentError="contentError"
    :options="{
      // optional - define the URL to pull content for
      // in browseres this is grabbed automatically from location.href for pages
      // and content targeted to specific URLs
      url: $route.path,
      // optional - filter content on custom fields
      query: {
        data: {
          myCustomField: 'myCustomValue',
        },
      },
    }"
  />
</template>

<script>
import { builder, RenderContent } from '@builder.io/vue';
import Vue from 'vue';

// Enter your Builder.io public API key
builder.init(YOUR_KEY);

// Optional - Set attributes to target content off of
// https://www.builder.io/c/docs/guides/targeting-and-scheduling
builder.setUserAttributes({
  locale: 'en_us',
});

export default Vue.extend({
  components: { RenderContent },
  data: () => ({
    notFound: false,
  }),
  methods: {
    contentLoaded(content) {
      if (!content) {
        this.notFound = true;
      }
    },
    contentError(err) {
      // Handle error
    },
  },
});
</script>

Related Packages

@builder.io/sdk-vue

Builder.io SDK for Vue

313,578 8,868

Version History

Version Released Vue License
0.1.12 ^2.6.11
0.1.11 ^2.6.11
0.1.10 ^2.6.11
0.1.9 ^2.6.11
0.1.8 ^2.6.11
Pre-releases (21)
Version Released Vue License
0.1.11-1 ^2.6.11
0.1.11-0 ^2.6.11
0.1.10-0 ^2.6.11
0.1.9-17 ^2.6.11
0.1.9-16 ^2.6.11