Skip to content

Commit a082803

Browse files
feat: add new style for call components
1 parent 802d364 commit a082803

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

preview/components/dialog-style-width-variant.tsx

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
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";
92
import { useState } from "react";
103

114
type 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
}

0 commit comments

Comments
 (0)