frontend/src/lib/components/shadcn/command/command-group.svelte
MuslemRahimi 52285fb69a ui fixes
2025-03-03 15:37:57 +01:00

19 lines
612 B
Svelte

<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils";
type $$Props = CommandPrimitive.GroupProps;
let className: string | undefined | null = undefined;
export { className as class };
</script>
<CommandPrimitive.Group
class={cn(
"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:",
className,
)}
{...$$restProps}
>
<slot />
</CommandPrimitive.Group>