Unverified Commit cbd3c618 authored by Cole Bemis's avatar Cole Bemis Committed by GitHub

docs: Clarify dot vs bracket notation

parent 93dd65f8
...@@ -235,6 +235,8 @@ feather.icons.x.toString() ...@@ -235,6 +235,8 @@ feather.icons.x.toString()
// '<line ... /><line ... />' // '<line ... /><line ... />'
``` ```
> **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']`).
[View Source](https://github.com/colebemis/feather/blob/master/src/icons.js) [View Source](https://github.com/colebemis/feather/blob/master/src/icons.js)
--- ---
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment