Search
The framework ships a small registry for plugging named data sources into a search overlay. The package does NOT ship a UI — overlays (e.g. a global search modal) consume the registry. Sources can be local arrays, fetched JSON, or any async provider.
Live Search Filter Demo
Type below to filter the live catalog items registered with useSearch:
- VdDockMorphing edge navigation bar
/components/dock - VdDataTableSortable, searchable, selectable data grid
/components/table - VdImageBoxGrid, masonry, bento, and filmstrip lightbox
/media/image-box - useThemePreferenceReactive palette, primary, neutral, and radius state
/guides/css-variables - VdFlowchartInteractive node-and-edge canvas editor
/canvas/flowchart
Result shape
Registering sources
Engine wiring
API Reference
| Method | Description |
|---|---|
registry.register(source) | Add a source. Throws on duplicate name, missing name, or missing fetch. |
registry.unregister(name) | Remove a source by name. Returns boolean. |
registry.list() | Returns a frozen array of registered sources. |
registry.query(text, options?) | Runs every source in parallel and resolves to { text, sources[] }. |
Accessibility
- The registry is purely data — accessibility lives in the overlay that consumes it.
- Result lists SHOULD expose
role="listbox"witharia-label; items getrole="option". - Use ↑/↓ for navigation, Enter for selection, Esc to close — consistent with a typical command-palette pattern.
- Abort in-flight queries on input change so stale results don't race.