mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
Small typo in example (#130)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user