Files
personal-website/src/lib/components/ui/command/command.svelte
Stan Runge cb5fc9d095
All checks were successful
build / build (push) Successful in 47s
build / deploy (push) Successful in 17s
chore: flatten repo
2026-08-26 03:57:15 +00:00

23 lines
522 B
Svelte

<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils.js";
type $$Props = CommandPrimitive.CommandProps;
export let value: $$Props["value"] = undefined;
let className: string | undefined | null = undefined;
export { className as class };
</script>
<CommandPrimitive.Root
class={cn(
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
className
)}
bind:value
{...$$restProps}
>
<slot />
</CommandPrimitive.Root>