Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
Svelte
12345678910111213141516171819202122232425<script lang="ts"> import EllipsisVertical from "$icon/ellipsis-vertical"; import Dropdown, { type DropdownProps } from "$lib/components/ui/Dropdown.svelte"; import { buttonIcon } from "$lib/components/ui/Button.svelte";
type Props = Omit<DropdownProps, "trigger" | "variant" | "label"> & { label: string };
let { label, align = "right", buttonVariant = "ghost", menuClass = "min-w-48", size, children, ...rest }: Props = $props();</script>
<Dropdown variant="button" {label} {align} {buttonVariant} {menuClass} {size} {...rest}> {#snippet trigger()} <EllipsisVertical class={buttonIcon({ size })} /> {/snippet} {@render children()}</Dropdown>