|
1
|
import { Button, Drawer, Text } from "@medusajs/ui" |
|
2
|
|
|
3
|
export default function DrawerDemo() { |
|
4
|
return ( |
|
5
|
<Drawer> |
|
6
|
<Drawer.Trigger asChild> |
|
7
|
<Button>Edit Variant</Button> |
|
8
|
</Drawer.Trigger> |
|
9
|
<Drawer.Content> |
|
10
|
<Drawer.Header> |
|
11
|
<Drawer.Title>Edit Variant</Drawer.Title> |
|
12
|
</Drawer.Header> |
|
13
|
<Drawer.Body className="p-4"> |
|
14
|
<Text>This is where you edit the variant's details</Text> |
|
15
|
</Drawer.Body> |
|
16
|
<Drawer.Footer> |
|
17
|
<Drawer.Close asChild> |
|
18
|
<Button variant="secondary">Cancel</Button> |
|
19
|
</Drawer.Close> |
|
20
|
<Button>Save</Button> |
|
21
|
</Drawer.Footer> |
|
22
|
</Drawer.Content> |
|
23
|
</Drawer> |
|
24
|
) |
|
25
|
} |