API Reference
HTML attributes and integration notes for the Model Viewer CDN package.
CDN API Reference
Use this page when you need the exact public surface for @vizbl/model-viewer.
HTML attributes
| Attribute | Required | Description |
|---|---|---|
data-vizbl-model-viewer-dialog | Yes | Marks an element as a Model Viewer trigger. |
data-vizbl-model-viewer-tinuuid | Yes | The unique identifier of a Vizbl object. |
data-vizbl-model-viewer-hid | No | The identifier of a material variant. |
Notes
- The bundle automatically binds elements with
data-vizbl-model-viewer-dialog. - If you change
tinuuidorhid, replace or re-render the trigger element so the bundle reads the new values. - If
hidis missing or invalid, Model Viewer uses the first available material. - There is no separate stylesheet to include for the CDN bundle.
- There is no public imperative API for opening or closing the dialog.
Next steps
- Return to Quickstart for a working example.
- Open Troubleshooting if a valid trigger still does not work.