File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ import { Button } from "@/components/tailwind/ui/button";
33import Menu from "@/components/tailwind/ui/menu" ;
44import Link from "next/link" ;
55import 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
714export 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 ) ;
You can’t perform that action at this time.
0 commit comments