#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