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
* A client is the entry point to the thirdweb SDK.
32
+
* It is required for all other actions.
33
+
* You can create a client using the `createThirdwebClient` function. Refer to the [Creating a Client](https://portal.thirdweb.com/typescript/v5/client) documentation for more information.
34
+
*
35
+
* You must provide a `clientId` or `secretKey` in order to initialize a client. Pass `clientId` if you want for client-side usage and `secretKey` for server-side usage.
36
+
*
37
+
* ```tsx
38
+
* import { createThirdwebClient } from "thirdweb";
39
+
*
40
+
* const client = createThirdwebClient({
41
+
* clientId: "<your_client_id>",
42
+
* })
43
+
* ```
44
+
*/
31
45
client: ThirdwebClient;
46
+
/**
47
+
* Set the theme for the `SwapWidget` component. By default it is set to `"dark"`
48
+
*
49
+
* theme can be set to either `"dark"`, `"light"` or a custom theme object.
50
+
* You can also import [`lightTheme`](https://portal.thirdweb.com/references/typescript/v5/lightTheme)
51
+
* or [`darkTheme`](https://portal.thirdweb.com/references/typescript/v5/darkTheme)
52
+
* functions from `thirdweb/react` to use the default themes as base and overrides parts of it.
0 commit comments