Filter products by Name or Owner
Component: <Search/>
Path: /components/home/search.tsx
Import:
import { Search } from "@/components/home/search";
A basic search input controlled by a useState (searchTerm and setSearchTerm) so you can re-use it wherever you need it.
useState
searchTerm
setSearchTerm
By default, this search bar is only used on components/main-layout.tsx, check this file if you want to see an example.
components/main-layout.tsx
Last updated 1 year ago