Pagefind-powered full-text search modal. Renders a trigger button (Ctrl+K) and a <dialog> container that is populated client-side by the Pagefind UI library.
import Search from 'igniteui-astro-components/components/Search.astro';None — the component is self-contained.
- The search index (
/pagefind/) is generated by runningpagefind --site <outDir>after a production build. This is wired automatically bysiteMetaIntegration. - In development the button renders but the dynamic Pagefind import resolves as a no-op — no runtime errors.
- Keyboard shortcut:
Ctrl+K/⌘Kto open,Escapeto close.
Search is included automatically inside DocsSubHeader / DocsLayout. Mount it directly if you build a custom header:
---
import Search from 'igniteui-astro-components/components/Search.astro';
---
<Search />Ensure Pagefind runs after astro build:
// package.json
{
"scripts": {
"build": "astro build && pagefind --site dist"
}
}