---
name: "@3d-viewer"
slug: "3d-viewer"
description: "A composable 3D model viewer for shadcn/ui with inspection, animation, multiple cameras, screenshots, and fullscreen support."
category: "Animated components"
tags: ["3d", "animation"]
framework: "react"
license: null
author: null
website: "https://shadcn-3d-viewer.vercel.app"
github: null
registry: "https://shadcn-3d-viewer.vercel.app/r/registry.json"
pro: false
pro_url: null
github_stars: null
component_count: 1
generated_at: "2026-10-10T06:32:55.998Z"
---

# @3d-viewer

A composable 3D model viewer for shadcn/ui with inspection, animation, multiple cameras, screenshots, and fullscreen support.

## Links

- Website: https://shadcn-3d-viewer.vercel.app
- Registry JSON: https://shadcn-3d-viewer.vercel.app/r/registry.json
- Directory page: https://sh4dcn.vercel.app/registry/3d-viewer
- This file: https://sh4dcn.vercel.app/md/3d-viewer.md

## Install

```sh
# add the whole registry (shadcn CLI)
npx shadcn@latest add https://shadcn-3d-viewer.vercel.app/r/registry.json
pnpm dlx shadcn@latest add https://shadcn-3d-viewer.vercel.app/r/registry.json
bunx shadcn@latest add https://shadcn-3d-viewer.vercel.app/r/registry.json
# fetch the raw registry index
curl -s https://shadcn-3d-viewer.vercel.app/r/registry.json
```

## Components (1)

| name | type | description | install |
| --- | --- | --- | --- |
| model-viewer | registry:ui | A composable React Three Fiber viewer with shared state, optional controls, inspection, animation, and fixed split views. Uses the host Base UI shadcn primitiv… | `npx shadcn@latest add https://shadcn-3d-viewer.vercel.app/r/model-viewer.json` |

## For AI agents

```text
You are adding components from @3d-viewer to a shadcn-compatible project.
1. Read this file (https://sh4dcn.vercel.app/md/3d-viewer.md) for the component list.
2. Fetch the machine-readable index: https://shadcn-3d-viewer.vercel.app/r/registry.json
3. Install a single component with its install command from the table above.
4. Full structured record: https://sh4dcn.vercel.app/json (library slug: 3d-viewer).
```
