2.0.0 • Published 2 years ago

stylefit-vue v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years 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

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago