0.1.36 • Published 11 months ago

@rromikas/configurio v0.1.36

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

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

1 year ago

0.1.31

1 year ago

0.1.32

12 months ago

0.1.33

12 months ago

0.1.34

11 months ago

0.1.35

11 months ago

0.1.36

11 months ago

0.1.27

1 year ago

0.1.28

1 year ago

0.1.29

1 year ago

0.1.22

1 year ago

0.1.23

1 year ago

0.1.24

1 year ago

0.1.25

1 year ago

0.1.26

1 year ago

0.1.21

1 year ago

0.1.20

1 year ago

0.1.19

1 year ago

0.1.18

1 year ago

0.1.17

1 year ago

0.1.16

1 year ago

0.1.15

1 year ago

0.1.14

1 year ago

0.1.13

1 year ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago