0.12.0 • Published 9 months ago
@cowprotocol/widget-react v0.12.0
CoW Swap React widget
React component that creates a CoW Swap widget. It is based on https://npmjs.com/package/@cowprotocol/widget-lib
Use it
Install dependency
yarn add @cowprotocol/widget-react
npm install @cowprotocol/widget-react
Import component and some convenient types
import { CowSwapWidget, CowSwapWidgetParams } from '@cowprotocol/widget-react'
Prepare the config for the widget:
const cowSwapWidgetParams: CowSwapWidgetParams = {
appCode: 'NAME-OF-YOU-APP', // Add here the name of your app. e.g. "Pig Swap"
width: '600px',
height: '700px',
tradeType: 'swap',
}
Render the component:
<CowSwapWidget params={cowSwapWidgetParams} />
Developers
# Test
nx test widget-react
# Build the library
nx build widget-react
# Publish to NPM
nx publish widget-react --ver x.y.z --tag latest
0.12.0
9 months ago
0.11.0
9 months ago
0.10.2-RC.0
10 months ago
0.10.0
11 months ago
0.10.1-RC.0
11 months ago
0.9.3
1 year ago
0.9.2
1 year ago
0.9.1
1 year ago
0.9.0
1 year ago
0.8.2
1 year ago
0.8.1
1 year ago
0.8.0
1 year ago
0.7.1
1 year ago
0.7.0
1 year ago
0.7.0-RC.0
1 year ago
0.6.0
1 year ago
0.5.0
1 year ago
0.5.0-RC.4
1 year ago
0.5.0-RC.1
1 year ago
0.5.0-RC.2
1 year ago
0.5.0-RC.3
1 year ago
0.5.0-RC.0
1 year ago
0.4.0
1 year ago
0.3.0
1 year ago
0.1.0
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.1
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago