mirror of
https://github.com/open-webui/open-webui
synced 2024-11-14 20:49:33 +00:00
31 lines
878 B
Svelte
31 lines
878 B
Svelte
|
<script lang="ts">
|
||
|
import { DropdownMenu } from 'bits-ui';
|
||
|
</script>
|
||
|
|
||
|
<DropdownMenu.Root>
|
||
|
<DropdownMenu.Trigger>
|
||
|
<slot />
|
||
|
</DropdownMenu.Trigger>
|
||
|
|
||
|
<slot name="content">
|
||
|
<DropdownMenu.Content
|
||
|
class="w-full max-w-[130px] rounded-lg px-1 py-1.5 border border-gray-700 z-50 bg-gray-850 text-white"
|
||
|
sideOffset={8}
|
||
|
side="bottom"
|
||
|
align="start"
|
||
|
>
|
||
|
<DropdownMenu.Item class="flex items-center px-3 py-2 text-sm font-medium">
|
||
|
<div class="flex items-center">Profile</div>
|
||
|
</DropdownMenu.Item>
|
||
|
|
||
|
<DropdownMenu.Item class="flex items-center px-3 py-2 text-sm font-medium">
|
||
|
<div class="flex items-center">Profile</div>
|
||
|
</DropdownMenu.Item>
|
||
|
|
||
|
<DropdownMenu.Item class="flex items-center px-3 py-2 text-sm font-medium">
|
||
|
<div class="flex items-center">Profile</div>
|
||
|
</DropdownMenu.Item>
|
||
|
</DropdownMenu.Content>
|
||
|
</slot>
|
||
|
</DropdownMenu.Root>
|