@mafintosh/search-component
v1.1.0
Published
A HUI component for search
Downloads
3
Readme
search-component
A HUI component for structuring search
npm install @mafintosh/search-componentUsage
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
