Vizbl

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

AttributeRequiredDescription
data-vizbl-model-viewer-dialogYesMarks an element as a Model Viewer trigger.
data-vizbl-model-viewer-tinuuidYesThe unique identifier of a Vizbl object.
data-vizbl-model-viewer-hidNoThe identifier of a material variant.

Notes

  • The bundle automatically binds elements with data-vizbl-model-viewer-dialog.
  • If you change tinuuid or hid, replace or re-render the trigger element so the bundle reads the new values.
  • If hid is 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