Skip to content
pandacoderz/ui

AI Hero

Landing hero with a rotating-placeholder prompt input, suggestion chips, and a streamed sample reply.

Ai Hero
Open preview

What’s inside

  • Prompt Input with a typewriter placeholder that cycles through example prompts.
  • Suggestions as outline chips under the input.
  • Message markdown renders the streamed sample reply in a card.

Installation

npx shadcn@latest add https://ui.spencerwueste.com/r/ai-hero.json

The registry item pulls in every component it depends on.

Usage

import AIHero from "@/components/blocks/ai-hero/ai-hero";

export default function Page() {
  return (
    <div className="h-dvh p-4">
      <AIHero />
    </div>
  );
}

Give the parent a bounded height. The block fills it and scrolls internally.

Going live

Wire submit to open your real chat or redirect to signup with the prompt prefilled. The headline and subhead props cover the copy; edit the rotating prompts array to match your product.