mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-16 01:10:30 +02:00
Add warning about v6.0.0 npm package deprecation to README (#6967)
* Add warning about v6.0.0 npm package deprecation * Update README.md * Update README.md
This commit is contained in:
parent
86a8f89e96
commit
06f09a265d
10
README.md
10
README.md
@ -70,14 +70,8 @@ Alternatively, you can also import all icons from a single file, where `[ICON SL
|
||||
import { siSimpleicons } from 'simple-icons/icons'
|
||||
```
|
||||
|
||||
You can also import the needed icons individually, where `[ICON SLUG]` is replaced by a [slug].
|
||||
```javascript
|
||||
// Import a specific icon by its slug as:
|
||||
// require('simple-icons/icons/[ICON SLUG]');
|
||||
|
||||
// For example:
|
||||
const icon = require('simple-icons/icons/simpleicons');
|
||||
```
|
||||
> :warning: The old way of importing with `require('simple-icons/icons/[ICON SLUG]')` is deprecated and
|
||||
will be removed in v7.0.0.
|
||||
|
||||
Either method will return an icon object:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user