<script>
import QuickSearchBar from "svelte-quicksearch-bar@latest";
const onPick = e => selectedOption = e.detail;
let options = [
{label: "Example", link: "/"},
{label: "Search with fuzzy", link: "/also"},
{label: "Bolds the text", link: "/in"},
{label: "Other example", link: "/the-link"},
];
let selectedOption;
</script>
<QuickSearchBar {options} on:pick={onPick} keys={['label', 'link']} />
<p>Press CTRL + K to open (the window has to be in focus)</p>
<p>Selected: {JSON.stringify(selectedOption)}</p>