0.1.36 • Published 2 years ago
@rromikas/configurio v0.1.36
Configurio
The library provides hook and components for custom rendering of 3d configurator. Create your configurator here.
Installation
Install configurio with npm or yarn
  npm install @rromikas/configurio three
  yarn add @rromikas/configurio threeUsage
import { useConfigurio } from '@rromikas/configurio';
import configurator from "./configurator.json";
function App() {
  const {
      modelViewer, // 3d model React element which fills container size
      options, // Color and materials options
      userSelections // array of selected options and their parent option
      } = useConfigurio(configurator)
  return  <div style={{width: 800, height: 400, display:"flex"}}>
            <div style={{flexGrow: 1}}>{modelViewer}</div>
            <div style={{width: 300, flexShrink:0}}>{options.map(option => {...})}</div>
          </div>
}0.1.30
3 years ago
0.1.31
3 years ago
0.1.32
2 years ago
0.1.33
2 years ago
0.1.34
2 years ago
0.1.35
2 years ago
0.1.36
2 years ago
0.1.27
3 years ago
0.1.28
3 years ago
0.1.29
3 years ago
0.1.22
3 years ago
0.1.23
3 years ago
0.1.24
3 years ago
0.1.25
3 years ago
0.1.26
3 years ago
0.1.21
3 years ago
0.1.20
3 years ago
0.1.19
3 years ago
0.1.18
3 years ago
0.1.17
3 years ago
0.1.16
3 years ago
0.1.15
3 years ago
0.1.14
3 years ago
0.1.13
3 years ago
0.1.12
3 years ago
0.1.11
3 years ago
0.1.10
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago