# drei

> Ready-made helpers for React Three Fiber: controls, loaders, environments, text, shaders.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/drei

free

Ready-made helpers for React Three Fiber: controls, loaders, environments, text, shaders.

by Poimandres[GitHub](https://github.com/pmndrs/drei)[npm](https://npmjs.com/package/@react-three/drei)

[visit](https://drei.docs.pmnd.rs/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://drei.docs.pmnd.rs](https://drei.docs.pmnd.rs/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [React Three Fiber](https://tastebase.ehsanulsiam.workers.dev/browse/r3f)

React renderer for three.js: build 3D scenes as JSX components with hooks.

no preview

### [three.js](https://tastebase.ehsanulsiam.workers.dev/browse/three)

The standard WebGL and WebGPU 3D engine: scenes, cameras, materials, loaders.

no preview

### [Spline (react-spline)](https://tastebase.ehsanulsiam.workers.dev/browse/spline)

Embed 3D scenes designed in the Spline editor as a React component.

no preview

### [OGL](https://tastebase.ehsanulsiam.workers.dev/browse/ogl)

Minimal WebGL library (about a tenth of three.js) for custom shader effects.

## Looks that pick it

[Spatial (visionOS)](https://tastebase.ehsanulsiam.workers.dev/looks/spatial)[Liquid chrome](https://tastebase.ehsanulsiam.workers.dev/looks/chrome)[Tactile 3D](https://tastebase.ehsanulsiam.workers.dev/looks/tactile-3d)

## For your agent

##### Install

`npm i @react-three/drei`

##### Use it for

- orbit or presentation controls on a product model
- loading a GLB model and HDRI lighting in a few lines
- 3D text, floating motion, soft shadows and HTML labels pinned to 3D points

##### Skip it when

- you are not using r3f: drei is r3f-only, use three's examples/jsm addons

##### What's inside45 free

- Controls (OrbitControls, MapControls...)
- CameraControls
- ScrollControls
- PresentationControls
- KeyboardControls
- PivotControls
- TransformControls
- GizmoHelper
- Grid
- PerspectiveCamera
- OrthographicCamera
- Environment
- Lightformer
- Stage
- ContactShadows
- AccumulativeShadows
- Float
- Sparkles
- Stars
- Sky
- Cloud
- Center
- Bounds
- Html
- Text
- Text3D
- Image
- Svg
- Decal
- Outlines
- Edges
- MeshTransmissionMaterial
- MeshReflectorMaterial
- MeshDistortMaterial
- MeshPortalMaterial
- shaderMaterial
- RenderTexture
- View
- Hud
- useGLTF
- useTexture
- useVideoTexture
- useAnimations
- Instances
- PerformanceMonitor

##### Facts

**Frameworks**
react

**Styling**
unstyled

**Weight**
medium

**Accessibility**
weak

**Maturity**
established

**License**
MIT

**Price**
Free

##### Pairs with

[React Three Fiber](https://tastebase.ehsanulsiam.workers.dev/browse/r3f)[three.js](https://tastebase.ehsanulsiam.workers.dev/browse/three)

```
import { Canvas } from '@react-three/fiber'
import { OrbitControls, Environment, useGLTF } from '@react-three/drei'

function Model() {
  const { scene } = useGLTF('/shoe.glb')
  return <primitive object={scene} />
}

<Canvas camera={{ position: [0, 0, 4] }}>
  <Model />
  <Environment preset="studio" />
  <OrbitControls enablePan={false} />
</Canvas>
```

https://drei.pmnd.rs

Loading website

[Visit](https://drei.docs.pmnd.rs/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
