Skip to content

Commit

Permalink
docs(web-components): add missed storybook import extensions (#17656)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdonrd authored Oct 8, 2024
1 parent c788f34 commit df9ec56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web-components/docs/welcome.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ The first thing you need is **setting up a module bundler** to resolve ECMAScrip
Once you set up a module bundler, you can start importing our component modules, for example:

```javascript
import '@carbon/web-components/es/components/dropdown/dropdown';
import '@carbon/web-components/es/components/dropdown/dropdown-item';
import '@carbon/web-components/es/components/dropdown/dropdown.js';
import '@carbon/web-components/es/components/dropdown/dropdown-item.js';
```

Once you've imported the component modules, you can use our components in the same manner as native HTML tags, for example:
Expand Down

0 comments on commit df9ec56

Please sign in to comment.