doc/spelling (#120)

This commit is contained in:
Collin Monahan
2020-10-31 11:11:18 -04:00
committed by GitHub
parent 51fd3af446
commit b533cf8480

View File

@@ -19,7 +19,7 @@ Lucide is a community-run fork of [Feather Icons](https://github.com/feathericon
* [Unpkg](#with-unpkg)
* [ESModules](#with-esmodules)
* [Options](#additional-options)
* [Threeshake library](#threeshake-the-library-only-use-the-icons-you-use)
* [Treeshake library](#treeshake-the-library-only-use-the-icons-you-use)
* [Custom binding](#custom-element-binding)
* [Figma](#figma)
* [Contributing](#contributing)
@@ -73,7 +73,7 @@ Here is a complete example with unpkg
### With ESModules
To reduce bundle size, lucide is build to be fully threeshakeble.
To reduce bundle size, lucide is built to be fully treeshakable.
The `createIcons` function will search for HTMLElements with the attribute `icon-name` and replace it with the svg from the given icon name.
```html
@@ -84,7 +84,7 @@ The `createIcons` function will search for HTMLElements with the attribute `icon
```js
import { createIcons, icons } from 'lucide';
// Caustion, this will import all the icons and bundle them.
// Caution, this will import all the icons and bundle them.
createIcons({icons});
// Recommended way, to include only the icons you need.
@@ -118,7 +118,7 @@ createIcons({
});
```
#### Threeshake the library, only use the icons you use
#### Treeshake the library, only use the icons you use
```js
import { createIcons, Menu, ArrowRight, Globe } from 'lucide';