mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Fix incorrect install urls
This commit is contained in:
@@ -9,8 +9,8 @@ The easiest way to install Shoelace is with the lazy loader via CDN. A lightweig
|
||||
To install the lazy loader, add the following tags to your page.
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="https://unpkg.com/@shoelace-style/shoelace@%VERSION%/shoelace.css">
|
||||
<script type="module" src="https://unpkg.com/@shoelace-style/shoelace@%VERSION%/shoelace.esm.js"></script>
|
||||
<link rel="stylesheet" href="https://unpkg.com/@shoelace-style/shoelace@%VERSION%/dist/shoelace/shoelace.css">
|
||||
<script type="module" src="https://unpkg.com/@shoelace-style/shoelace@%VERSION%/dist/shoelace/shoelace.esm.js"></script>
|
||||
```
|
||||
|
||||
Now you can [start using components!](/getting-started/usage.md)
|
||||
@@ -22,9 +22,9 @@ Another way to consume the library is with the custom elements bundle. Compared
|
||||
To install the custom elements bundle, add the following tags to your page.
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="https://unpkg.com/@shoelace-style/shoelace@%VERSION%/shoelace.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/@shoelace-style/shoelace@%VERSION%/dist/shoelace/shoelace.css">
|
||||
<script type="module">
|
||||
import { defineCustomElements } from 'https://unpkg.com/@shoelace-style/shoelace@%VERSION%/custom-elements-bundle';
|
||||
import { defineCustomElements } from 'https://unpkg.com/@shoelace-style/shoelace@%VERSION%/dist/custom-elements/index.mjs';
|
||||
defineCustomElements();
|
||||
</script>
|
||||
```
|
||||
@@ -55,7 +55,7 @@ Once you've done that, add the following tags to your page. Make sure to update
|
||||
```html
|
||||
<link rel="stylesheet" href="/assets/shoelace/shoelace.css">
|
||||
<script type="module">
|
||||
import { defineCustomElements } from '/assets/shoelace/custom-elements-bundle';
|
||||
import { defineCustomElements } from '/assets/shoelace/dist/custom-elements/index.mjs';
|
||||
defineCustomElements();
|
||||
</script>
|
||||
```
|
||||
|
||||
@@ -14,8 +14,8 @@ Designed in New Hampshire by [Cory LaViska](https://twitter.com/claviska).
|
||||
Add the following code to your page.
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" src="https://unpkg.com/@shoelace-style/shoelace@%VERSION%/shoelace.css">
|
||||
<script type="module" src="https://unpkg.com/@shoelace-style/shoelace@%VERSION%/shoelace.esm.js"></script>
|
||||
<link rel="stylesheet" href="https://unpkg.com/@shoelace-style/shoelace@%VERSION%/dist/shoelace/shoelace.css">
|
||||
<script type="module" src="https://unpkg.com/@shoelace-style/shoelace@%VERSION%/dist/shoelace/shoelace.esm.js"></script>
|
||||
```
|
||||
|
||||
Now you have access to all of Shoelace's components! Try adding a button:
|
||||
|
||||
Reference in New Issue
Block a user