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: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,7 @@ const App = () => {
75
75
exportdefaultApp;
76
76
```
77
77
78
+
78
79
#### Generating random shapes
79
80
80
81
setting the `random`[prop](#props) to true or leaving the `index` or `type` prop empty would replace the shape with a random shape every time it renders.
@@ -184,10 +185,16 @@ There are a total of **115** shapes available in Coolshapes under the following
184
185
|`misc`| 11 |
185
186
|`number`| 10 |
186
187
187
-
**Note:** When importing the components the name would be capitalized, but when passing as prop, the name would be lower case
188
+
**Note:** When importing the components the name would be capitalized, but when passing as prop, the name would be lower case.
189
+
188
190
189
191
### Others
190
192
193
+
#### Name & Class
194
+
All components have inbuilt name starting 1. But, index starts from 0.
195
+
*Example: `<Star index={0} />` when rendered it's component name and class name is `Star1`*
196
+
197
+
#### umd & es
191
198
There are `umd` and `es` included in bundled version of the module,
0 commit comments