UNPKG

vue-json-search

Version:

Headless Vue (3.x) search component based on [Fuse.js](https://github.com/krisk/Fuse). Designed for static generators like [Hugo](https://github.com/gohugoio/hugo) but works with any site that's cabable of producing a JSON corpus.

9 lines (8 loc) 211 B
import Fuse from 'fuse.js'; export declare type FuseResult<T> = Fuse.FuseResult<T>; export declare type SearchResultItem = { title: string; permalink: string; summary: string; tags: string[]; };