Skip to content

Commit cbd3c61

Browse files
authored
docs: Clarify dot vs bracket notation
1 parent 93dd65f commit cbd3c61

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ feather.icons.x.toString()
235235
// '<line ... /><line ... />'
236236
```
237237

238+
> **Note:** `x` in the above example can be replaced with any valid icon name. See the complete list of icon names at [feathericons.com](https://feathericons.com). Icons with multi-word names (e.g. `arrow-right`) **cannot** be accessed using dot notation (e.g. `feather.icons.x`). Instead, use bracket notation (e.g. `feather.icons['arrow-right']`).
239+
238240
[View Source](https://github.com/colebemis/feather/blob/master/src/icons.js)
239241

240242
---

0 commit comments

Comments
 (0)