Skip to content

sunquakes/three-vue3

Repository files navigation

English | 🇨🇳中文

Three Vue3

three-vue3 logo

Node GitHub three-vue3

Documentation

Visit three-vue3.sunquakes.com.

Install

Install Three.js

pnpm i three

Install three-vue3

pnpm i three-vue3

Getting Started

  • Import the desired components from three-vue3 in main.js.
import ThreeVue3 from 'three-vue3'
Vue.use(ThreeVue3)
  • Use it in Vue 3 components.
<template>
  <tv-scene class="scene"></tv-scene>
</template>

<script lang="ts" setup></script>

<style>
.scene {
  margin-top: 10px;
  width: 100%;
  height: 300px;
}
</style>

License

Apache-2.0 license