Skip to content

Cherry-picking components from the CDN - how to do it so it works? #748

Closed Answered by oliveratgithub
oliveratgithub asked this question in Help
Discussion options

You must be logged in to vote

I just found that it works to include each component individually from jsDelivr:

<script type="module" src="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/dist/components/tooltip/tooltip.min.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/dist/components/icon/icon.min.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/dist/components/button/button.min.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/dist/components/button-group/button-group.min.js"></script>

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@oliveratgithub
Comment options

@claviska
Comment options

@oliveratgithub
Comment options

@oliveratgithub
Comment options

@claviska
Comment options

Answer selected by oliveratgithub
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants