Product Search 1 - Command dialog with product results
A command-palette style search dialog that opens from a search bar or the ⌘K shortcut and lists matching products with thumbnails, categories and prices. Use it as the global storefront search in a shop header or catalog page.
About Product Search 1
A command-palette style search dialog that opens from a search bar or the ⌘K shortcut and lists matching products with thumbnails, categories and prices. Use it as the global storefront search in a shop header or catalog page.
Product Search 1 is a free product search block for React, built on shadcn/ui and Tailwind CSS. It ships as 162 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- ecommerce
- search
- command
- dialog
- keyboard
- thumbnails
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/product-search-01Dependencies installed automatically: lucide-react.
Uses: dialog, kbd, reveal, utils.
Usage
import ProductSearch01 from "@/components/blocks/product-search-01"
export default function Page() {
return <ProductSearch01 />
}