Skip to content

Commit 51d06a1

Browse files
Merge pull request #17 from AET-DevOps25/15-whiteboard-component-implement
Add initial whiteboard component
2 parents 1b9f54b + 9fd2b2b commit 51d06a1

File tree

3 files changed

+242
-4
lines changed

3 files changed

+242
-4
lines changed

client/package-lock.json

Lines changed: 224 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dependencies": {
1313
"@radix-ui/react-slot": "^1.2.2",
1414
"@radix-ui/themes": "^3.2.1",
15+
"@xyflow/react": "^12.6.1",
1516
"class-variance-authority": "^0.7.1",
1617
"clsx": "^2.1.1",
1718
"lucide-react": "^0.509.0",
@@ -21,10 +22,10 @@
2122
"tailwind-merge": "^3.2.0"
2223
},
2324
"devDependencies": {
24-
"@tanstack/react-query-devtools": "^5.75.7",
2525
"@eslint/eslintrc": "^3",
2626
"@tailwindcss/postcss": "^4",
2727
"@tanstack/eslint-plugin-query": "^5.74.7",
28+
"@tanstack/react-query-devtools": "^5.75.7",
2829
"@types/node": "^20",
2930
"@types/react": "^19",
3031
"@types/react-dom": "^19",

client/src/app/page.tsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
1-
import { Button } from "@/components/ui/button";
1+
import React from "react";
2+
import {
3+
ReactFlow,
4+
Background,
5+
BackgroundVariant,
6+
Controls,
7+
} from "@xyflow/react";
8+
import "@xyflow/react/dist/style.css";
29

310
export default function Home() {
4-
return <Button>Button</Button>;
11+
return (
12+
<div style={{ width: "100vw", height: "100vh" }}>
13+
<ReactFlow fitView>
14+
<Controls position="bottom-right" />
15+
<Background variant={BackgroundVariant.Dots} gap={16} size={1} />
16+
</ReactFlow>
17+
</div>
18+
);
519
}

0 commit comments

Comments
 (0)