threecn

SceneContainer

The themed canvas wrapper every other scene builds on. It sets up the <Canvas>, camera, a fully offline lighting rig (no HDRI downloads) and optional

The themed canvas wrapper every other scene builds on. It sets up the <Canvas>, camera, a fully offline lighting rig (no HDRI downloads) and optional fog.

Fullscreen

Customize

Environment
Fog

Props

classNamestring

Classes for the wrapper element (set its height here).

Default
theme"auto" | "light" | "dark"

Color source. auto reads the live shadcn theme.

Default"auto"
environment"studio" | "city" | "dawn" | "night"

Offline lighting rig preset (no HDRI downloads).

Default"studio"
fogboolean

Adds themed fog using --background.

Defaultfalse
childrenReactNode

Your 3D content (meshes, points, drei helpers).

Default