|
1
|
import { Tabs, Text } from "@medusajs/ui" |
|
2
|
|
|
3
|
export default function TabsDemo() { |
|
4
|
return ( |
|
5
|
<div className="w-full px-4 flex flex-col gap-4"> |
|
6
|
<Tabs defaultValue="general"> |
|
7
|
<Tabs.List> |
|
8
|
<Tabs.Trigger value="general">General</Tabs.Trigger> |
|
9
|
<Tabs.Trigger value="shipping">Shipping</Tabs.Trigger> |
|
10
|
<Tabs.Trigger value="payment">Payment</Tabs.Trigger> |
|
11
|
</Tabs.List> |
|
12
|
<div className="mt-2"> |
|
13
|
<Tabs.Content value="general"> |
|
14
|
<Text size="small"> |
|
15
|
At ACME, we're dedicated to providing you with an exceptional |
|
16
|
shopping experience. Our wide selection of products caters to your |
|
17
|
every need, from fashion to electronics and beyond. We take pride |
|
18
|
in our commitment to quality, customer satisfaction, and timely |
|
19
|
delivery. Our friendly customer support team is here to assist you |
|
20
|
with any inquiries or concerns you may have. Thank you for |
|
21
|
choosing ACME as your trusted online shopping destination. |
|
22
|
</Text> |
|
23
|
</Tabs.Content> |
|
24
|
<Tabs.Content value="shipping"> |
|
25
|
<Text size="small"> |
|
26
|
Shipping is a crucial part of our service, designed to ensure your |
|
27
|
products reach you quickly and securely. Our dedicated team works |
|
28
|
tirelessly to process orders, carefully package items, and |
|
29
|
coordinate with reliable carriers to deliver your purchases to |
|
30
|
your doorstep. We take pride in our efficient shipping process, |
|
31
|
guaranteeing your satisfaction with every delivery. |
|
32
|
</Text> |
|
33
|
</Tabs.Content> |
|
34
|
<Tabs.Content value="payment"> |
|
35
|
<Text size="small"> |
|
36
|
Our payment process is designed to make your shopping experience |
|
37
|
smooth and secure. We offer a variety of payment options to |
|
38
|
accommodate your preferences, from credit and debit cards to |
|
39
|
online payment gateways. Rest assured that your financial |
|
40
|
information is protected through advanced encryption methods. |
|
41
|
Shopping with us means you can shop with confidence, knowing your |
|
42
|
payments are safe and hassle-free. |
|
43
|
</Text> |
|
44
|
</Tabs.Content> |
|
45
|
</div> |
|
46
|
</Tabs> |
|
47
|
<Text size="xsmall" className="text-ui-fg-muted"> |
|
48
|
Use the left and right arrow keys to navigate between the tabs. You must |
|
49
|
focus on a tab first. |
|
50
|
</Text> |
|
51
|
</div> |
|
52
|
) |
|
53
|
} |