Buckets:
frohzinn/bcbsma-storage / llama.cpp /tools /ui /src /lib /components /app /navigation /DropdownMenuSearchable.svelte
| <script lang="ts"> | |
| import type { Snippet } from 'svelte'; | |
| import * as DropdownMenu from '$lib/components/ui/dropdown-menu'; | |
| import { SearchInput } from '$lib/components/app'; | |
| interface Props { | |
| placeholder?: string; | |
| searchValue?: string; | |
| onSearchChange?: (value: string) => void; | |
| onSearchKeyDown?: (event: KeyboardEvent) => void; | |
| emptyMessage?: string; | |
| isEmpty?: boolean; | |
| children: Snippet; | |
| footer?: Snippet; | |
| } | |
| let { | |
| placeholder = 'Search...', | |
| searchValue = $bindable(''), | |
| onSearchChange, | |
| onSearchKeyDown, | |
| emptyMessage = 'No items found', | |
| isEmpty = false, | |
| children, | |
| footer | |
| }: Props = $props(); | |
| </script> | |
| <div class="sticky top-0 z-10 mb-2 bg-popover p-1 pt-2"> | |
| <SearchInput | |
| {placeholder} | |
| bind:value={searchValue} | |
| onInput={onSearchChange} | |
| onKeyDown={onSearchKeyDown} | |
| /> | |
| </div> | |
| <div class="overflow-y-auto"> | |
| {@render children()} | |
| {#if isEmpty} | |
| <div class="px-2 py-3 text-center text-sm text-muted-foreground">{emptyMessage}</div> | |
| {/if} | |
| </div> | |
| {#if footer} | |
| <DropdownMenu.Separator /> | |
| { footer()} | |
| {/if} | |
Xet Storage Details
- Size:
- 1.07 kB
- Xet hash:
- 51b9ac26fee30a4ee8d5b08feb4ffb62d206ce86096f2338ec494b227eb616d4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.