🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

@mafintosh/search-component

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mafintosh/search-component

A HUI component for search

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 14 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts