Skip to content

Commit 9152e46

Browse files
committed
feat: add dialog usage
1 parent 41d7e6a commit 9152e46

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

apps/web/app/page.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ import { Button } from "@/components/tailwind/ui/button";
33
import Menu from "@/components/tailwind/ui/menu";
44
import Link from "next/link";
55
import TailwindAdvancedEditor from "@/components/tailwind/advanced-editor";
6+
import {
7+
Dialog,
8+
DialogContent,
9+
DialogTrigger,
10+
} from "@/components/tailwind/ui/dialog";
11+
import { ScrollArea } from "@/components/tailwind/ui/scroll-area";
12+
import { BookOpen } from "lucide-react";
613

714
export default function Page() {
815
return (
@@ -13,11 +20,25 @@ export default function Page() {
1320
<Github />
1421
</a>
1522
</Button>
23+
<Dialog>
24+
<DialogTrigger asChild>
25+
<Button className="ml gap-2">
26+
<BookOpen className="h-4 w-4" />
27+
Usage in dialog
28+
</Button>
29+
</DialogTrigger>
30+
<DialogContent className="flex max-w-3xl h-[calc(100vh-24px)]">
31+
<ScrollArea className="max-h-screen">
32+
<TailwindAdvancedEditor />
33+
</ScrollArea>
34+
</DialogContent>
35+
</Dialog>
1636
<Link href="/docs" className="ml-auto">
1737
<Button variant="ghost">Documentation</Button>
1838
</Link>
1939
<Menu />
2040
</div>
41+
2142
<TailwindAdvancedEditor />
2243
</div>
2344
);

0 commit comments

Comments
 (0)