Search results

  • Section
  • main-search
  • Beauty
  • Shopify Liquid ready
  • 5.6 KB JS

Search page that mixes razors and guides under type tabs, with a results grid. Part of Stubble, a beauty theme for men's shaving & grooming, in the free, open-source Blocko library.

Open live demo Open in library

Features

  • Ships 5.6 KB of vanilla JavaScript (blko-predictive-search.js, blko-search-blog.js), registered as an idempotent Custom Element.
  • Ships as Shopify Liquid, with 24 merchant settings in the Theme Editor. Block types: Result tab, Filter.
  • Category main-search. Made for beauty stores.
  • Shopify: real `search` object + {% paginate %}; result-type tabs/filters link to /search?type=. Client-side tab filtering and live count exist in the static HTML only.

Used in pages

This section appears in 1 page template in Stubble:

Preview

Search results preview

Use it with your agent

Paste this one-line prompt into any coding agent. It asks where the section should go before it changes anything.

Use the Blocko library (https://github.com/blockoai/blocko) or its Claude Code plugin (claude plugin marketplace add blockoai/blocko && claude plugin install blocko-sections@blocko) to implement the section "Search results" in my project. Id `search-blog-search-results`, theme `stubble`. Live demo: https://demo.blocko.ai/html/stubble/sections/main-search--search-blog-search-results.html. Shopify bundle: sections/stubble/search-blog-search-results/ in the repo. Before changing any code, ask me where it should go: which project/theme, which page or template, and the position (e.g. after the hero). Also ask if the target is a Shopify theme or plain HTML. Skip anything I've already said. Restate the plan and wait for my OK, then follow the repo's AGENTS.md. Keep the blko- class prefix and CSS tokens (with fallbacks), make custom elements idempotent, and don't touch unrelated code. Run `shopify theme check` for Shopify targets. Finish by telling me how to add/arrange it (Theme Editor steps for Shopify).

Connected to the Blocko MCP server (https://blocko.ai/mcp)? Ask your agent to run get_item for stubble/search-blog-search-results, then get_item_source and get_install_guide. Connect your agent.