You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
controls/ # Shared orbit-controls and other helpers
19
+
```
20
+
21
+
The sidebar groups **API** demos by category and lists **Examples** separately. Each API category maps to a folder under `src/api/`; each folder typically contains a `usage.tsx` entry point plus additional focused demo files.
22
+
23
+
## Adding a Demo
24
+
25
+
**API demo** — create a `.tsx` file under `src/api/<category>/`. It is picked up automatically via Vite glob import and appears in the sidebar.
26
+
27
+
**Example** — create a `.tsx` file under `src/examples/`. Same auto-discovery applies.
28
+
29
+
Each file should export a default component that renders the demo (with its own `<Canvas>` if needed).
0 commit comments