mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-09 06:09:20 +00:00
24 lines
584 B
Svelte
24 lines
584 B
Svelte
<script lang="ts">
|
|
import { Command as CommandPrimitive } from 'cmdk-sv';
|
|
import { cn } from '$lib/utils/style.js';
|
|
import type { ClassValue } from 'svelte/elements';
|
|
|
|
type $$Props = CommandPrimitive.CommandProps;
|
|
|
|
export let value: $$Props['value'] = undefined;
|
|
|
|
let className: ClassValue | 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>
|