API Reference
Props and integration notes for the React Model Viewer package.
React API Reference
Use this page when you need the exact React component surface for @vizbl/react-model-viewer.
ModelViewerDialogProps
Prop
Type
The dialog props are based on shadcn/ui Dialog.
ModelViewerProps
Prop
Type
Notes
- Import
@vizbl/react-model-viewer/style.cssonce in your client bundle. - Render the package from a client component.
- Give
ModelViewera container with a real height, for examplestyle={{ height: 640 }}.
Next steps
- Open Quickstart for the shortest working setup.
- Read ModelViewerDialog or ModelViewer for integration patterns.
- Open Troubleshooting if a valid component setup still does not work.