TempMonitor/src/lib/components/ui/command/command-list.svelte

18 lines
412 B
Svelte
Raw Normal View History

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
/>