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