File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change 1- import {
2- Button ,
3- Dialog ,
4- DialogContent ,
5- DialogHeader ,
6- DialogTrigger ,
7- Text ,
8- } from "@/packages/ui" ;
1+ import { Button , Dialog , Text } from "@/packages/ui" ;
92import { useState } from "react" ;
103
114type Variants =
@@ -36,13 +29,13 @@ export default function DialogStyleWidthVariant() {
3629
3730 return (
3831 < Dialog >
39- < DialogTrigger asChild >
32+ < Dialog . Trigger asChild >
4033 < Button > Open Dialog</ Button >
41- </ DialogTrigger >
42- < DialogContent size = { variant } >
43- < DialogHeader >
34+ </ Dialog . Trigger >
35+ < Dialog . Content size = { variant } >
36+ < Dialog . Header >
4437 < Text as = "h5" > Dialog with variants</ Text >
45- </ DialogHeader >
38+ </ Dialog . Header >
4639 < section className = "flex flex-col gap-4 p-4" >
4740 < section className = "text-xl" >
4841 < p > Choose your width size</ p >
@@ -60,7 +53,7 @@ export default function DialogStyleWidthVariant() {
6053 </ section >
6154 </ section >
6255 </ section >
63- </ DialogContent >
56+ </ Dialog . Content >
6457 </ Dialog >
6558 ) ;
6659}
You can’t perform that action at this time.
0 commit comments