Staaarter

AI Prompt Hero with Stats

A landing-page hero for an AI product: heading, description, a prominent prompt input with a Generate button, a row of trust stat tiles (prompts run, active users, response time, uptime), and a grid of popular prompt example cards below.

By Staaarter Team
Chat
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/ai-prompt-hero-with-stats.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/chat/chat18.tsx instead.

Usage

The file also exports chat18Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Chat18, chat18Demo } from "@/components/blocks/chat/chat18";

export default function Page() {
  return <Chat18 {...chat18Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"The fastest way to get AI answers"Hero heading.
descriptionstring"Type a prompt below and get a well-crafted response..."Hero subheading.
statsHeroStat[]noneTrust stat tiles shown below the prompt input.
popularPromptsPopularPrompt[]noneGrid of popular prompt example cards.
classNamestringnoneExtra classes for the outer section element.

Types

export interface HeroStat {
  label: string;
  value: string;
}

export interface PopularPrompt {
  id: string;
  title: string;
}

Behavior notes

  • Fully static Server Component: the prompt input and Generate button are plain, uncontrolled markup with no onSubmit handler and no client state, per this repo's rule that Server Components can't carry event handlers.
  • Stats and popular prompt cards are static display data, not computed from any real usage metrics.