1.3.1 • Published 1 year ago

react-model-viewer-3d v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-model-viewer-3d

Suzanne Model

npm package for adding interactive glTF models directly into your react application

License

Usage

npm i react-model-viewer-3d
import ModelViewer from 'react-model-viewer-3d'
<ModelViewer
    gltf={'./example.gltf'}
    scale={2} // Defaults to 1
    rotation={[0, Math.PI /2, 0]} // Defaults to [0, 0, 0]
    height={'300px'} // Defaults to 300px
    width={'30vw'} // Defaults to 300px
/>

Dependencies

  • React
  • Threejs
  • react-three/fiber & react-three/drei (Shout out to the PMNDRS)

Author

JackYouk

  • Email: jackyoukstetter1@gmail.com
  • Github: JackYouk

License

This project is licensed under the terms of the MIT license.