You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,9 @@
1
1
📢 Use this project, [contribute](https://github.com/vtex-apps/store-icons) to it or open issues to help evolve it using [Store Discussion](https://github.com/vtex-apps/store-discussion).
2
+
2
3
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
@@ -59,7 +62,7 @@ Import the desired icon and use it into your code, for example:
59
62
```js
60
63
import { IconMenu } from'vtex.store-icons'
61
64
62
-
constYourComponent=props=><IconMenu />
65
+
constYourComponent=(props)=><IconMenu />
63
66
```
64
67
65
68
You can see [here](#icon-list) a list of every available icon.
@@ -73,7 +76,7 @@ For example:
73
76
```js
74
77
import { Icon } from'vtex.store-icons'
75
78
76
-
constYourComponent=props=><Icon id="hpa-cart"/>
79
+
constYourComponent=(props)=><Icon id="hpa-cart"/>
77
80
```
78
81
79
82
⚠️ This component is meant to be used on icons there aren't common throughout the store. Choose [`dedicated`](#dedicated-icon) components whenever possible.
@@ -141,6 +144,8 @@ Some components support modifiers. These are props that define the icon type, or
0 commit comments