2025-11-01 16:18:29 +01:00
|
|
|
<script lang="ts">
|
|
|
|
|
import { cn, type WithElementRef } from '../../tools';
|
|
|
|
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
|
|
|
|
|
|
|
|
let {
|
|
|
|
|
ref = $bindable(null),
|
|
|
|
|
class: className,
|
|
|
|
|
inset,
|
|
|
|
|
children,
|
|
|
|
|
...restProps
|
|
|
|
|
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
|
|
|
inset?: boolean;
|
|
|
|
|
} = $props();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
bind:this={ref}
|
|
|
|
|
data-slot="dropdown-menu-label"
|
|
|
|
|
data-inset={inset}
|
2025-11-24 01:00:50 +01:00
|
|
|
class={cn('ui:px-2 ui:py-1.5 ui:text-sm ui:font-semibold ui:data-[inset]:pl-8', className)}
|
2025-11-01 16:18:29 +01:00
|
|
|
{...restProps}
|
|
|
|
|
>
|
|
|
|
|
{@render children?.()}
|
|
|
|
|
</div>
|