Raw
1 import { Select } from "@medusajs/ui"
2
3 export default function SelectDemo() {
4 return (
5 <div className="w-[256px]">
6 <Select disabled>
7 <Select.Trigger>
8 <Select.Value placeholder="Select a currency" />
9 </Select.Trigger>
10 <Select.Content>
11 {currencies.map((item) => (
12 <Select.Item key={item.value} value={item.value}>
13 {item.label}
14 </Select.Item>
15 ))}
16 </Select.Content>
17 </Select>
18 </div>
19 )
20 }
21
22 const currencies = [
23 {
24 value: "eur",
25 label: "EUR",
26 },
27 {
28 value: "usd",
29 label: "USD",
30 },
31 {
32 value: "dkk",
33 label: "DKK",
34 },
35 ]