docs: update and fix UI props docs (#10754)

This commit is contained in:
Shahed Nasser
2024-12-27 14:53:46 +02:00
committed by GitHub
parent 8839970295
commit 1c355dac36
85 changed files with 2068 additions and 324 deletions

View File

@@ -0,0 +1,35 @@
import { Select } from "@medusajs/ui"
export default function SelectItemAligned() {
return (
<div className="w-[256px]">
<Select>
<Select.Trigger>
<Select.Value placeholder="Select a currency" />
</Select.Trigger>
<Select.Content position="item-aligned">
{currencies.map((item) => (
<Select.Item key={item.value} value={item.value}>
{item.label}
</Select.Item>
))}
</Select.Content>
</Select>
</div>
)
}
const currencies = [
{
value: "eur",
label: "EUR",
},
{
value: "usd",
label: "USD",
},
{
value: "dkk",
label: "DKK",
},
]