2.0.0 • Published 10 months ago

stylefit-vue v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

Stylefit Vue

A Vue 2 compatible component library that offers a customizable 3D viewer for your application. It's easy to implement and provides a smooth user experience.

Installation

To install this package, use npm:

npm install stylefit-vue

Usage

Firstly, you need to import and register the component:

<script>
import StylefitViewer from 'stylefit-vue';

export default {
  components: {
    StylefitViewer, // Register StylefitViewer as a component
  },
  props: {
    accountId: { type: String, default: "" },
    sku: { type: String, default: "" },
    model: { type: Number, default: 0 },
  },
  // rest of your script
};
</script>

You can then use the component in your Vue templates:

<template>
  <div >
    <StylefitViewer 
      :accountId="yourAccountId"
      :sku="yourSku"
      :model="yourModel" />
  </div>
</template>

Props

The StylefitViewer component currently supports three props:

  • accountId: Required. A string that specifies the account id.
  • sku: Required. A string that specifies the SKU.
  • model: Optional. A number that specifies the model index. Default is 0.
2.0.0

10 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago