Small typo in example (#130)

pull/132/head
Andrew Desmarais 2020-07-21 15:21:54 -04:00 zatwierdzone przez GitHub
rodzic 2821cacb37
commit 38ce5e4a31
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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.