diff --git a/examples/starknet-react-next/package.json b/examples/starknet-react-next/package.json
index c7fd55b6a..6cac75445 100644
--- a/examples/starknet-react-next/package.json
+++ b/examples/starknet-react-next/package.json
@@ -11,6 +11,7 @@
},
"dependencies": {
"@cartridge/connector": "workspace:^",
+ "@cartridge/ui-next": "workspace:^",
"@starknet-react/chains": "^0.1.3",
"@starknet-react/core": "^2.1.5",
"next": "^13.4.19",
@@ -24,8 +25,12 @@
"@types/node": "^20.6.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
+ "autoprefixer": "^10.4.18",
"eslint": "^8.23.0",
"eslint-config-next": "^12.2.5",
+ "postcss": "^8.4.35",
+ "postcss-import": "^16.1.0",
+ "tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
}
}
diff --git a/examples/starknet-react-next/postcss.config.js b/examples/starknet-react-next/postcss.config.js
new file mode 100644
index 000000000..a5a6ff858
--- /dev/null
+++ b/examples/starknet-react-next/postcss.config.js
@@ -0,0 +1,7 @@
+module.exports = {
+ plugins: {
+ "postcss-import": {},
+ tailwindcss: {},
+ autoprefixer: {},
+ },
+};
diff --git a/examples/starknet-react-next/src/components/ConnectWallet.tsx b/examples/starknet-react-next/src/components/ConnectWallet.tsx
index 3dc7bf064..8790ba887 100644
--- a/examples/starknet-react-next/src/components/ConnectWallet.tsx
+++ b/examples/starknet-react-next/src/components/ConnectWallet.tsx
@@ -1,6 +1,7 @@
import { useAccount, useConnect, useDisconnect } from "@starknet-react/core";
import CartridgeConnector from "@cartridge/connector";
import { useEffect, useState } from "react";
+import { Button } from "@cartridge/ui-next";
export function ConnectWallet() {
const { connect, connectors } = useConnect();
@@ -16,7 +17,7 @@ export function ConnectWallet() {
}, [address, connector]);
return (
- <>
+
{address && (
<>
Account: {address}
@@ -24,15 +25,13 @@ export function ConnectWallet() {
>
)}
-
-
-
- >
+
+
);
}
diff --git a/examples/starknet-react-next/src/components/DelegateAccount.tsx b/examples/starknet-react-next/src/components/DelegateAccount.tsx
index b09b6e514..d09c21335 100644
--- a/examples/starknet-react-next/src/components/DelegateAccount.tsx
+++ b/examples/starknet-react-next/src/components/DelegateAccount.tsx
@@ -2,6 +2,7 @@ import { useAccount } from "@starknet-react/core";
import { useCallback, useEffect, useState } from "react";
import { constants } from "starknet";
import CartridgeConnector from "@cartridge/connector";
+import { Button, Input } from "@cartridge/ui-next";
export const DelegateAccount = () => {
const [chainId] = useState(
@@ -57,28 +58,31 @@ export const DelegateAccount = () => {
}
return (
- <>
+
Delegate account
{isDelegateSupported ? (
<>
Address: {delegateAddress}
-
+
-
setDelegateAddressInput(e.target.value)}
- />
-
+
+ setDelegateAddressInput(e.target.value)}
+ />
+
+
>
) : (
Not supported!
)}
- >
+
);
};
diff --git a/examples/starknet-react-next/src/components/DojoSpawnAndMove.tsx b/examples/starknet-react-next/src/components/DojoSpawnAndMove.tsx
index 964935cf7..265bcb7bc 100644
--- a/examples/starknet-react-next/src/components/DojoSpawnAndMove.tsx
+++ b/examples/starknet-react-next/src/components/DojoSpawnAndMove.tsx
@@ -1,3 +1,4 @@
+import { Button } from "@cartridge/ui-next";
import {
useAccount,
useContractWrite,
@@ -38,11 +39,11 @@ export function DojoSpawnAndMove() {
}
return (
- <>
+
Spawn And Move (Dojo example)
Actions Address: {DOJO_ACTION_ADDRESS}
-
-
{txnHash && (
@@ -83,6 +84,6 @@ export function DojoSpawnAndMove() {
)}
- >
+
);
}
diff --git a/examples/starknet-react-next/src/components/InvalidTxn.tsx b/examples/starknet-react-next/src/components/InvalidTxn.tsx
index d72bd602c..3d1edab39 100644
--- a/examples/starknet-react-next/src/components/InvalidTxn.tsx
+++ b/examples/starknet-react-next/src/components/InvalidTxn.tsx
@@ -1,3 +1,4 @@
+import { Button } from "@cartridge/ui-next";
import { useAccount, useContractWrite } from "@starknet-react/core";
export function InvalidTxn() {
@@ -18,11 +19,11 @@ export function InvalidTxn() {
}
return (
- <>
+
Invalid Entry Point
- write()}>Invalid Entrypoint
+ write()}>Invalid Entrypoint
- >
+
);
}
diff --git a/examples/starknet-react-next/src/components/SignMessage.tsx b/examples/starknet-react-next/src/components/SignMessage.tsx
index 40d0e9bd7..f909b6843 100644
--- a/examples/starknet-react-next/src/components/SignMessage.tsx
+++ b/examples/starknet-react-next/src/components/SignMessage.tsx
@@ -1,3 +1,4 @@
+import { Button, Textarea } from "@cartridge/ui-next";
import { useAccount, useSignTypedData } from "@starknet-react/core";
import { useCallback, useState } from "react";
import {
@@ -76,27 +77,25 @@ export function SignMessage() {
if (!account || !address) return <>>;
return (
-