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 three
Usage
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
2 years ago
0.1.31
2 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
2 years ago
0.1.28
2 years ago
0.1.29
2 years ago
0.1.22
2 years ago
0.1.23
2 years ago
0.1.24
2 years ago
0.1.25
2 years ago
0.1.26
2 years ago
0.1.21
2 years ago
0.1.20
2 years ago
0.1.19
2 years ago
0.1.18
2 years ago
0.1.17
2 years ago
0.1.16
2 years ago
0.1.15
2 years ago
0.1.14
2 years ago
0.1.13
2 years ago
0.1.12
2 years ago
0.1.11
2 years ago
0.1.10
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago