Skip to content

Commit

Permalink
docs: publish hot-toolbar component in markdown example
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed May 30, 2024
1 parent 18371ee commit 531d643
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,13 @@ that your app requires, in addition to tree-shaking in the final bundle

The icon pack for Shoelace must be imported to display in components.

There are two options:
#### 1. Loading Assets from CDN

#### 1. CDN Assets
If the component is imported via CDN, the icons will be bundled automatically:

Just add the Shoelace icons via CDN in your HTML file:

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@shoelace-style
/[email protected]/cdn/themes/light.css" />

// Or dark
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@shoelace-style
/[email protected]/cdn/themes/dark.css" />
```js
import "https://cdn.jsdelivr.net/npm/@shoelace-style
/[email protected]/cdn/components/Button.js"
```

#### 2. Bundle Assets Yourself
Expand Down Expand Up @@ -164,7 +158,7 @@ To determine which version:
If you are using a bundler, you must bundle the (icon) assets yourself,
as described above.

## Example Component In Markdown
## Example Markdown Components

<!-- markdownlint-disable -->

Expand All @@ -177,4 +171,8 @@ as described above.
});
</script>

<br>

<hot-toolbar></hot-toolbar>

<!-- markdownlint-enable -->

0 comments on commit 531d643

Please sign in to comment.