File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ import { Button } from "@/components/tailwind/ui/button";
3
3
import Menu from "@/components/tailwind/ui/menu" ;
4
4
import Link from "next/link" ;
5
5
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" ;
6
13
7
14
export default function Page ( ) {
8
15
return (
@@ -13,11 +20,25 @@ export default function Page() {
13
20
< Github />
14
21
</ a >
15
22
</ 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 >
16
36
< Link href = "/docs" className = "ml-auto" >
17
37
< Button variant = "ghost" > Documentation</ Button >
18
38
</ Link >
19
39
< Menu />
20
40
</ div >
41
+
21
42
< TailwindAdvancedEditor />
22
43
</ div >
23
44
) ;
You can’t perform that action at this time.
0 commit comments