@wannaby/wanna-model-viewer
v0.0.10
Published
3D Model Previewer
Downloads
17
Keywords
Readme
#React Component for preview 3D glTF models
Install
yarn add @wannaby/wanna-model-viewer
Usage
For DnD previewer just init the component without url
prop.
import React, { Component } from 'react'
import ModelViewer from 'wanna-model-viewer'
class Example extends Component {
render() {
return <ModelViewer />
}
}
For remote download archive with model just add the url
prop.
import React, { Component } from 'react'
import ModelViewer from 'wanna-model-viewer'
class Example extends Component {
render() {
return (
<ModelViewer
url="https://s3.amazonaws.com/bucket/model.zip"
/>
)
}
}
License
MIT © WANNA