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
Copy file name to clipboardExpand all lines: packages/model-viewer/README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ supported to provide a seamless development experience.
21
21
22
22
## Installing
23
23
24
+
### NPM
25
+
24
26
The `<model-viewer>` web component can be installed from [NPM](https://npmjs.org):
25
27
26
28
```sh
@@ -30,6 +32,14 @@ npm install three
30
32
npm install @google/model-viewer
31
33
```
32
34
35
+
Finally, include the `<model-viewer>` script in your project.
36
+
37
+
```js
38
+
import'@google/model-viewer';
39
+
```
40
+
41
+
### CDN
42
+
33
43
It can also be used directly from various free CDNs such as [jsDelivr](https://www.jsdelivr.com/package/npm/@google/model-viewer) and Google's own [hosted libraries](https://developers.google.com/speed/libraries#model-viewer):
0 commit comments