Skip to content
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

Commit 780e1a4

Browse files
committed
added code snippet
1 parent 7c69d52 commit 780e1a4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,19 @@
3333

3434
![Buttons](http://i.imgur.com/aZNhgFp.png)
3535

36+
```
37+
<Button
38+
raised
39+
icon={{name: 'cached'}}
40+
title='RAISED WITH ICON' />
41+
```
42+
3643
| Prop | default | Type | Description |
3744
| ---- | ---- | ----| ---- |
3845
| buttonStyle | none | object | add additional styling for button component |
3946
| title | none | string | button title |
4047
| onPress | none | function | onPress method |
41-
| icon | none | string | [Material Icon Name](https://design.google.com/icons/) |
48+
| icon | none | object {name(string), color(string), size(string)} | [Material Icon Name](https://design.google.com/icons/) |
4249
| secondary | false | boolean | secondary button flag |
4350
| backgroundColor | primary color | string (color) | background color of button |
4451
| color | white | string(color) | font color |

0 commit comments

Comments
 (0)