mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 17:07:43 +01:00
doc/spelling (#120)
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user