Skip to content

Commit 35dcc32

Browse files
authored
Updating README.md
1 parent bf7836f commit 35dcc32

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,16 @@ class SubmitButtonExample extends Component {
3939
|---------------|----------|--------------|----------------------------------------------------------------|
4040
| primaryColor | `string` | `rgb(30, 205, 151)` | optional user-defined primary color |
4141
| secondaryColor | `string` | `white` | optional user-defined secondary color |
42+
| buttonState | `string` | `normal` | button state can be one of `normal`, `success`, `error` |
4243
| width | `number` | 180 | optional user-defined width for button |
4344
| height | `number` | 54 | optional user-defined height for button |
4445
| buttonText | `string` | 'Submit' | optional user-defined text on button |
4546
| buttonTextWhenReady | `string` | | optional user-defined text on button when success (either provide this or give iconName to be shown once submitted successfully ) , this will get priority over icon name |
4647
| iconName | `string` | 'check' | optional any icon name from fontello icons , to be shown once we got success. |
4748
| textStyle | `object` | | optional text styles to override existing styles |
4849
| buttonStyle | `object` | | optional button styles to override existing styles |
50+
| animationDuration | `number` | 200 | number in `ms`. Time to fold button. |
51+
| errorColor | `string` | `#ff6666` | error color |
52+
| onSubmit | `function` | | function to call on button press |
53+
| onSuccess | `function` | | function to call on success |
54+
| onError | `function` | | function to call on error |

0 commit comments

Comments
 (0)