@sveltepress/docsearch
v0.1.1
Published
Docsearch component for sveltepress
Readme
@sveltepress/docsearch
Algolia DocSearch component for SveltePress.
Installation
pnpm add @sveltepress/docsearchUsage
Import and use the Search component:
<script>
import Search from '@sveltepress/docsearch/Search.svelte'
</script>
<Search
appId="YOUR_APP_ID"
apiKey="YOUR_API_KEY"
indexName="YOUR_INDEX_NAME"
/>The component automatically handles dark mode switching by observing the dark class on <html>.
Type Exports
import type { DocSearchProps } from '@sveltepress/docsearch/types'License
MIT
