Storefront Search
Store search page with suggestions, highlighted matches and did you mean.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this page
What it's for
- Store search page with suggestions, highlighted matches and did you mean.
- E-commerce search results with popular searches and recently viewed.
- Search with a no results state that offers a correction.
For global command palette for an app, use Search Global Palette.
Includes
- Autocomplete
- Highlighted results
- Did you mean
- Popular searches
- Recently viewed
- No results recovery
- Url state
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19 and Tailwind CSS 4 in Next.js (App Router), Vite, React Router or TanStack Start, installed with the agentic-ui or shadcn CLI
- Your theme tokens, in light and dark mode
- 1 template or blueprint on this site use it (below)
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add storefront-searchInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/storefront-searchUsed in
- Type
- Page
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- npm packages
lucide-react- Registry dependencies
commerce-cart-drawercommerce-order-trackingcommerce-reviews-blockcommerce-variant-pickerlib-primitivessearch-autocompletesearch-faceted-sidebarsearch-recently-viewedsearch-results-highlight- Files
20 files
- components/agentic-ui/storefront-search/screens/search.tsx
- components/agentic-ui/storefront-search/lib/search-model.ts
- components/agentic-ui/storefront-search/lib/types.ts
- components/agentic-ui/storefront-search/lib/art.ts
- components/agentic-ui/storefront-search/lib/money.ts
- components/agentic-ui/storefront-search/content/taxonomy.ts
- components/agentic-ui/storefront-search/content/catalog.ts
- components/agentic-ui/storefront-search/content/reviews.ts
- components/agentic-ui/storefront-search/lib/block-types.ts
- components/agentic-ui/storefront-search/content/products-wear.ts
- components/agentic-ui/storefront-search/content/products-gear.ts
- components/agentic-ui/storefront-search/components/recent-products.tsx
- components/agentic-ui/storefront-search/components/search-parts.tsx
- components/agentic-ui/storefront-search/components/product-bits.tsx
- components/agentic-ui/storefront-search/lib/stores.ts
- components/agentic-ui/storefront-search/lib/store.ts
- components/agentic-ui/storefront-search/lib/orders-model.ts
- components/agentic-ui/storefront-search/lib/cart-model.ts
- components/agentic-ui/storefront-search/content/shipping.ts
- components/agentic-ui/storefront-search/content/orders.ts
Related components
Storefront Cart
Full shopping cart page with quantity steppers, promo code and totals.
Details and live previewStorefront Checkout
Three step checkout with shipping address, demo payment and review.
Details and live previewStorefront Home
Online store home page with a hero, collections and featured products.
Details and live previewStorefront Not Found
404 page for an online store with search and links to the shop.
Details and live preview