flbxcup/resources/js/components/ui/command/command-list.svelte
2025-06-23 23:12:40 +02:00

17 lines
399 B
Svelte

<script lang="ts">
import { Command as CommandPrimitive } from "bits-ui";
import { cn } from "@/lib/utils.js";
let {
ref = $bindable(null),
class: className,
...restProps
}: CommandPrimitive.ListProps = $props();
</script>
<CommandPrimitive.List
bind:ref
data-slot="command-list"
class={cn("max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden", className)}
{...restProps}
/>