Installation

Using Package Manager

We recommend using the package manager (NPM, Yarnopen in new window, PNPMopen in new window) to install Vue 3D Model.

With NPM:

npm install vue-3d-model --save

With Yarn:

yarn add vue-3d-model

With PNPM:

pnpm install vue-3d-model

If you are in a bad network environment, you can try other registries and tools like CNPMopen in new window.

Import in Browser

Add script tag in your browser and use the global variable Vue3DModel.

unpkg

<head>
  <!-- Import Vue 3 -->
  <script src="//unpkg.com/vue@next"></script>
  <!-- Import component library -->
  <script src="//unpkg.com/vue-3d-model"></script>
</head>

jsDelivr

<head>
  <!-- Import Vue 3 -->
  <script src="//cdn.jsdelivr.net/npm/vue@next"></script>
  <!-- Import component library -->
  <script src="//cdn.jsdelivr.net/npm/vue-3d-model"></script>
</head>
Last Updated:
Contributors: Jiulong Hu