Create beautiful and interactive React + ThreeJS globe visualizations with ease.
- ✨ Beautiful and complete with clouds, backgrounds and lighting.
- ✌️ Incredibly simple to use and configure.
- 📍 Render interactive markers on the globe using simple data.
- 🎞 Easy globe animations and marker transitions.
- ⚛️ Modern Javascript + build tools.
yarn add react-globe
Note that react-globe
requires react >= 16.8.0
and three >= 0.102.0
as peer dependencies.
View all documented examples and gallery of react-globe
applications at https://react-globe.netlify.com/.
You can also run the examples locally:
git clone [email protected]:chrisrzhou/react-globe
cd react-globe
yarn && yarn dev
The code is written in typescript
, linted with eslint
+ prettier
, and bundled with rollup
. Examples and documentations are built with docz
.
Feel free to contribute by submitting a pull request.
react
three
three-glow-mesh
three-orbitcontrols
three.interaction
es6-tween
tippy.js
ReactGlobe.tsx
: Core React component exposing relevant props controlling theGlobe
instance.Globe.ts
: Primary ThreeJS rendering logic written as aGlobe
class.Tooltip.ts
: Tooltip component powered bytippy.js
.types.ts
: Typescript types.defaults.ts
: Default options and constants.utils.ts
: Various simple functions to compute derived data./textures
: Default globe, clouds and background textures.