1<script lang="ts">
2 import { Select as SelectPrimitive } from 'bits-ui';
3 import { cn } from '$lib/components/ui/utils.js';
4 import type { ComponentProps } from 'svelte';
5
6 let {
7 ref = $bindable(null),
8 class: className,
9 children,
10 ...restProps
11 }: ComponentProps<typeof SelectPrimitive.GroupHeading> = $props();
12</script>
13
14<SelectPrimitive.GroupHeading
15 bind:ref
16 data-slot="select-group-heading"
17 class={cn('px-2 py-1.5 text-xs text-muted-foreground', className)}
18 {...restProps}
19>
20 {@render children?.()}
21</SelectPrimitive.GroupHeading>