1 import { Tabs, Text } from "@medusajs/ui"
2 import { TruckFast, CreditCard, InformationCircle } from "@medusajs/icons"
3
4 export default function TabsIcons() {
5 return (
6 <div className="w-full px-4 flex flex-col gap-4">
7 <Tabs defaultValue="general">
8 <Tabs.List>
9 <Tabs.Trigger value="general">
10 <InformationCircle className="mr-1.5 h-4 w-4" /> General
11 </Tabs.Trigger>
12 <Tabs.Trigger value="shipping">
13 <TruckFast className="mr-1.5 h-4 w-4" /> Shipping
14 </Tabs.Trigger>
15 <Tabs.Trigger value="payment">
16 <CreditCard className="mr-1.5 h-4 w-4" /> Payment
17 </Tabs.Trigger>
18 </Tabs.List>
19 <div className="mt-2">
20 <Tabs.Content value="general">
21 <Text size="small">This is the General tab with an icon.</Text>
22 </Tabs.Content>
23 <Tabs.Content value="shipping">
24 <Text size="small">This is the Shipping tab with an icon.</Text>
25 </Tabs.Content>
26 <Tabs.Content value="payment">
27 <Text size="small">This is the Payment tab with an icon.</Text>
28 </Tabs.Content>
29 </div>
30 </Tabs>
31 <Text size="xsmall" className="text-ui-fg-muted">
32 Use the left and right arrow keys to navigate between the tabs. You must
33 focus on a tab first.
34 </Text>
35 </div>
36 )
37 }