Skip to content

Commit

Permalink
Merge 4ec6554 into 3908727
Browse files Browse the repository at this point in the history
  • Loading branch information
hirishh committed Jun 18, 2018
2 parents 3908727 + 4ec6554 commit 37e3a5d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions readme.md
Expand Up @@ -43,11 +43,19 @@

### Params:
- type: `'nano'` or `'hub'` (optional, default is `'hub'`)
- message: the message to sign
- source-id: id of an input field used as message source (mutual-exclusive with `'message`')
- message: the message to sign (priority is given to `'source-id`')
- button-title: The text that appears on the button

#### Example with Message
```
<lisk-button-sign type="hub" message="message to sign" title="Sign it!"></lisk-button-sign>
<lisk-button-sign type="hub" message="message to sign" button-title="Sign it!"></lisk-button-sign>
```

#### Example with Source ID
```
<input type="text" id="message-input" placeholder="Message...">
<lisk-button-sign type="hub" source-id="message-input" button-title="Sign it!"></lisk-button-sign>
```

# Examples
Expand Down

0 comments on commit 37e3a5d

Please sign in to comment.