Small typo in example (#130)

This commit is contained in:
Andrew Desmarais
2020-07-21 15:21:54 -04:00
committed by GitHub
parent 2821cacb37
commit 38ce5e4a31

View File

@@ -48,7 +48,7 @@ To import individual Shoelace components, use this syntax.
import { SlButton, SlDropdown } from '@shoelace-style/shoelace/dist/custom-elements';
customElements.define('sl-button', SlButton);
customElements.define('sl-dropdown', SlButton);
customElements.define('sl-dropdown', SlDropdown);
```
For convenience, the bundle also exports a `defineCustomElements()` method. When this method is called, it will automatically define all Shoelace components in the bundle.
@@ -59,4 +59,4 @@ import { defineCustomElements } from '@shoelace-style/shoelace/dist/custom-eleme
defineCustomElements();
```
While convenient, importing all components like this will make your bundle larger. For best results, only import the components you're actually going to use.
While convenient, importing all components like this will make your bundle larger. For best results, only import the components you're actually going to use.