Package Exports
- @readyplayerme/visage
- @readyplayerme/visage/dist/index.cjs.js
- @readyplayerme/visage/dist/index.esm.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@readyplayerme/visage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Visage
Visage is a collection of components for showcasing Ready Player Me avatars and 3D on the web!
Built with three.js, react-three-fiber, drei, three-stdlib and react.
Installation
Visage is available as an npm package.
npm install @readyplayerme/visageMake sure to install peer-dependencies if your project doesn't already include them:
npm install @react-three/drei @react-three/fiber three three-stdlib suspend-reactDocumentation & examples
You can find all code examples of the components and their documentation on our GitHub page.
Here is the first one to get you started:
import React from 'react';
import ReactDOM from 'react-dom';
import { Exhibit } from '@readyplayerme/visage';
const modelSrc = 'https://readyplayerme.github.io/visage/male.glb'; // this can be a relative or absolute URL
function App() {
return (
<Exhibit modelSrc={modelSrc} />
);
}
ReactDOM.render(<App />, document.querySelector('#app'));License
Visage is MIT licensed.