npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

@mafintosh/search-component

1.1.0

@mafintosh

npmHomeRepoSnykSocket
Downloads:118
$ npm install @mafintosh/search-component
DailyWeeklyMonthlyYearly

search-component

A HUI component for structuring search

npm install @mafintosh/search-component

Usage

const Search = require('@mafintosh/search-component')

const s = new Search({
  result (data, index) {
    // data is from the nanoiterator
    return someDomElementShowingTheResult
  },
  query (txt) {
    return someNanoIterator
  }
}, {
  // whatever attrs you want to set on the search element
})

document.body.appendChild(s)

Only provides the functionality and structure. Bring your own styling.

License

MIT