diff --git a/web/src/lib/Search.svelte b/web/src/lib/Search.svelte new file mode 100644 index 0000000..3af39bc --- /dev/null +++ b/web/src/lib/Search.svelte @@ -0,0 +1,44 @@ + + +
+ { + onSearch(inputText); + }} + oninput={() => { + suggestions = onSuggest(inputText); + }} + /> + + {#if showSuggestions} +
+ {#each suggestions as suggestion} +
+ {suggestion} +
+ {/each} +
+ {/if} +