2025-04-03 10:11:49 -05:00
|
|
|
<script lang="ts">
|
2025-05-07 16:43:24 +02:00
|
|
|
import { Command as CommandPrimitive } from 'cmdk-sv';
|
|
|
|
|
import { cn } from '$lib/utils/style.js';
|
|
|
|
|
import type { ClassValue } from 'svelte/elements';
|
2025-04-03 10:11:49 -05:00
|
|
|
type $$Props = CommandPrimitive.GroupProps;
|
|
|
|
|
|
2025-04-20 18:54:45 +02:00
|
|
|
let className: ClassValue | undefined | null = undefined;
|
2025-04-03 10:11:49 -05:00
|
|
|
export { className as class };
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<CommandPrimitive.Group
|
|
|
|
|
class={cn(
|
2025-05-07 16:43:24 +02:00
|
|
|
'text-foreground [&_[data-cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[data-cmdk-group-heading]]:px-2 [&_[data-cmdk-group-heading]]:py-1.5 [&_[data-cmdk-group-heading]]:text-xs [&_[data-cmdk-group-heading]]:font-medium',
|
2025-04-03 10:11:49 -05:00
|
|
|
className
|
|
|
|
|
)}
|
|
|
|
|
{...$$restProps}
|
|
|
|
|
>
|
|
|
|
|
<slot />
|
|
|
|
|
</CommandPrimitive.Group>
|