kopia lustrzana https://github.com/shoelace-style/shoelace
Small typo in example (#130)
rodzic
2821cacb37
commit
38ce5e4a31
|
@ -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.
|
||||
|
|
Ładowanie…
Reference in New Issue