@th-batman/3d-viewer-vue

Official Vue 3 component wrapper for `@3d-viewer/core`. Renders 3D jewelry customizers in Nuxt 3, Vite, and standard Vue 3 applications.
715
Install
npm install @th-batman/3d-viewer-vue
Latest Version:1.3.0
Vue:3
License:MIT
Last Updated:Oct 12, 2026
Links: npm
Maintainer: th-batman

@3d-viewer/vue

Official Vue 3 component wrapper for @3d-viewer/core. Renders 3D jewelry customizers in Nuxt 3, Vite, and standard Vue 3 applications.


Installation

pnpm add @3d-viewer/vue @3d-viewer/core three
# or with npm
npm install @3d-viewer/vue @3d-viewer/core three

Usage

<script setup lang="ts">
import { ref } from 'vue'
import { Viewer } from '@3d-viewer/vue'

const modelUrl = ref('https://cdn.example.com/models/solitaire-ring.glb')
const activeMetal = ref('yellow-gold-18k')
const activeStone = ref('diamond-colorless')

function onLoaded(info: any) {
  console.log('Model loaded! Parts:', info.parts)
}
</script>

<template>
  <div style="width: 100%; height: 500px;">
    <Viewer
      :source="modelUrl"
      :metal-color="activeMetal"
      :stone-color="activeStone"
      :auto-rotate="true"
      @loaded="onLoaded"
    />
  </div>
</template>

License

MIT

Version History

Version Released Vue License
1.3.0 >=3.3.0 MIT
1.0.0 >=3.3.0 MIT
0.2.1 >=3.3.0 MIT
Pre-releases (1)
Version Released License
0.0.0-stage