You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/thirdweb/src/react/web/ui/Bridge/swap-widget/SwapWidget.tsx
+72Lines changed: 72 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -167,6 +167,78 @@ export function SwapWidget(props: SwapWidgetProps) {
167
167
);
168
168
}
169
169
170
+
/**
171
+
* A widget for swapping tokens with cross-chain support
172
+
*
173
+
* @param props - Props of type [`SwapWidgetProps`](https://portal.thirdweb.com/references/typescript/v5/SwapWidgetProps) to configure the SwapWidget component.
174
+
*
175
+
* @example
176
+
* ### Basic usage
177
+
*
178
+
* By default, no tokens are selected in the widget UI.
179
+
*
180
+
* You can set specific tokens to buy or sell by default by passing the `prefill` prop. User can change these selections in the widget UI.
0 commit comments