nodewee / nextjs-searchinput

A next.js component. Search/filter list to input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Next.js component: SearchInput.

Screenshot

example data: [{"pid": "101", "pname": "apple" }, {"pid": "102", "pname": "banana" }, {"pid": "103", "pname": "orange" }]

Files

  • components/searchinput.js
  • styles/searchinput.module.css

HOW TO IMPORT THE COMPONENT

// disable ssr for random id
import dynamic from 'next/dynamic'
const SearchInput = dynamic(import('../components/searchinput').then(mod => mod.SearchInput), { ssr: false })

About

A next.js component. Search/filter list to input


Languages

Language:JavaScript 66.0%Language:CSS 34.0%