Skip to main content
Clever Ops

Intent Prompt Hero

Hero built around a single prompt field, the placeholder cycles through real use-cases as ghost text, and the submit action is the page's one accent. Conversion by invitation.

Preview & code

Loading Intent Prompt Hero preview

Installation

pnpm dlx shadcn@latest add @cleverui/hero-intent-prompt

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { HeroIntentPrompt } from '@/components/blocks/hero-intent-prompt'
Exampletsx
import { HeroIntentPrompt } from '@/components/blocks/hero-intent-prompt'

export default function HeroIntentPromptDemo() {
  return (
    <div className="mx-auto w-full">
      <HeroIntentPrompt
        eyebrow="Relaydesk · Intent runtime"
        title="Tell it the job. Watch the runbook write itself."
        description="Relaydesk turns a plain-language ask into a drafted workflow, inbox triage, invoice chase, or CRM handoff, ready to approve in under a minute."
        placeholders={[
          'Chase unpaid invoices over 14 days and ping finance on Slack…',
          'Summarize yesterday’s support tickets and flag churn risk…',
          'Draft a QBR deck from Salesforce opportunities closed this month…',
          'Route inbound RFPs to the right AE and schedule discovery…',
        ]}
        buttonLabel="Try it"
        onSubmit={(value) => {
          console.log('intent', value)
        }}
        footnote="No install · Runs in sandbox first · SOC 2 Type II"
      />
    </div>
  )
}

API reference

HeroIntentPrompt accepts the following props.

PropTypeDefaultDescription
eyebrowstring
title*string
descriptionstring
placeholders*string[]use-case ghost prompts cycled in the field
buttonLabelstring'Try it'
onSubmit(value: string) => void
footnotestringmono micro-line under the field

…plus everything from Omit<React.HTMLAttributes<HTMLElement>, 'onSubmit'>: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the Intent Prompt Hero component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/hero-intent-prompt`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Intent Prompt Hero require?

Intent Prompt Hero uses motion and lucide-react on top of React and Tailwind CSS. You don't need to install them manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Intent Prompt Hero to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services