Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Apr 21, 2022
1 parent a315539 commit 08b7cbd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,25 @@ You can use the css attribute of the button element to declare css rules to styl
></div>
```

### Render with React

You can also render DePay Buttons (over initializing them):

```javascript
import { DePayButton } from '@depay/buttons'

return(

<DePayButton
label={'Pay'},
widget={'Payment'}
configuration={{"accept":[{"blockchain":"ethereum","amount":20,"token":"0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb","receiver":"0x4e260bB2b25EC6F3A59B478fCDe5eD5B8D783B02"}]}}
/>

)

```

## Development

### Get started
Expand Down

0 comments on commit 08b7cbd

Please sign in to comment.