Motionshelf
← All components

Commerce

Search Ad

A search types out, the results show up, and the sponsored result is highlighted.

Install

npx shadcn@latest add https://motionshelf-pi.vercel.app/r/search-ad.json

Copies the file into your project. Requires React 19, Tailwind CSS v4 and GSAP (installed as a dependency).

Props

NameTypeDefaultDescription
querystring"running shoes"Text typed into the search box.
adDomainstring"example.com"Domain shown on the sponsored result.
adTitlestring"Brand · Running shoes on sale"Title of the sponsored result.
adTextstring"Free shipping over $50…"Description of the sponsored result.
organicDomainstring"reviews.example"Domain of the organic result.
organicTitlestring"The best running shoes of the year"Title of the organic result.
organicTextstring"We compared the top picks…"Description of the organic result.
ctastring"Visit store"Button shown under the results.
accentstring"#1f5bff"Color of the highlight and the button.
loopbooleantrueReplay forever with a pause between runs.
classNamestring""Extra classes for the outer element.

Dependencies

  • gsap
  • @gsap/react