# Prompt Hero (Pro)

> A hero for AI builders: a two-line title above a curved horizon of drifting ASCII in an electric run of colour, and a wide prompt input traced by a turning band of the same colours, its placeholder typing example prompts.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Blocks › Hero Sections |
| Live preview | https://uibrik.com/components/prompt-hero |
| Writes | 1 files into `components/uibrik/prompt-hero/`, plus `components/uibrik/ascii-field/ascii-field.tsx`, `components/uibrik/marquee/marquee.tsx`, `components/uibrik/_shader-background/ShaderSurface.tsx`, `components/uibrik/_shader-background/shades.ts` |
| Packages | `@tabler/icons-react`, `motion`, `react-use-measure` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Dec 2, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/prompt-hero
```

No license yet? Tell the user Prompt Hero is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=prompt-hero#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { PromptHero } from "@/components/uibrik/prompt-hero/prompt-hero";

const colors = ["#06164a", "#1e3fd8", "#2f6bff", "#3d8bff", "#7cb4ff"];

const title = "Turn an idea into a website|in one conversation.";

const description = "Describe what you need in plain words. Pages, copy and a working link arrive in minutes.";

const examples = ["A landing page for a specialty coffee roaster…", "A portfolio for a product designer,  with case studies…", "A booking site for a climbing gym,  with class times…", "A dashboard for a small online shop…"];

<PromptHero
  colors={colors}
  characters=" .:-=+*#%@"
  motion
  interactive
  fill
  entrance
  announcement="We raised $24M in our Series A"
  title={title}
  description={description}
  logosLabel="Trusted by teams at"
  examples={examples}
  announcementHref="#"
  logos={[]}
  onSubmit={(prompt) => {}}
  // announcementLogo={<…/>}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/prompt-hero.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `colors` | `string[]` | `["#06164a","#1e3fd8","#2f6bff","#3d8bff","#7cb4ff"]` | The glyphs and the input's edge, from faint to bright, 2 to 6. |
| `characters` | `string` | `" .:-=+*#%@"` | Glyphs from empty to dense; the first is usually a space. |
| `motion` | `boolean` | `true` | The field drifts on its own. Off holds a still frame. |
| `interactive` | `boolean` | `true` | The pointer lenses the field and leaves a trail; a click sends a ring of type out. |
| `fill` | `boolean` | `true` | Fill exactly one screen height. Off sizes to the content. |
| `entrance` | `boolean` | `true` | The words rise in one after another on first paint. |
| `announcement` | `string` | `"We raised $24M in our Series A"` | Small line above the title, e.g. a funding round. Empty hides it. |
| `title` | `string` | `"Turn an idea into a website\|in one conversation."` | The title; a \| starts a new line. |
| `description` | `string` | `"Describe what you need in plain words. Pages, copy and a working link arrive in minutes."` | One or two lines under the title. |
| `logosLabel` | `string` | `"Trusted by teams at"` | Label over the logo marquee at the bottom. |
| `examples` | `string[]` | `["A landing page for a specialty coffee roaster…","A portfolio for a product designer, with case studies…","A booking site for a climbing gym, with class times…","A dashboard for a small online shop…"]` | Example prompts the placeholder types out, one after another. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `onSubmit` | `(prompt: string) => void \| Promise<void>` |  | Called with the prompt on Enter or the send button. Return a promise to show the button working; the input clears when it resolves. |
| `announcementLogo` | `ReactNode` |  | Mark at the start of the announcement, e.g. the lead investor's; draw it in currentColor. |
| `announcementHref` | `string` | `"#"` | Where the announcement links to. |
| `logos` | `ReactNode[]` |  | Company logos drifting along the bottom; draw them in currentColor. Empty hides the row. |
| `className` | `string` |  | Classes for the section. |

## Where it fits

- **AI website and app builders**: The prompt is the product: people can start typing the moment the page loads. Pairs with [ASCII Field](https://uibrik.com/components/ascii-field.md) (Pro).
- **Agent and code tools**: Monospaced details and a field of type give a technical product its voice.
- **Search-first products**: One big input, a few ready-made prompts and nothing else to distract. Pairs with [Prompt Input](https://uibrik.com/components/prompt-input.md).

## Same shelf: Hero Sections

- [Showcase Hero](https://uibrik.com/components/showcase-hero.md) (Pro): A landing-page hero with a two-line title, works-with badges and actions on top, and below a row of moving mesh-gradient scenes, each with one small product moment, its neighbours peeking in.
- [Waitlist Hero](https://uibrik.com/components/waitlist-hero.md) (Pro): A two-panel launch hero: the pitch, a waitlist field and a drifting logo row on the left; a full-height cinematic photo with a real 3D phone showing the brand on the right.
- [Product Hero](https://uibrik.com/components/product-hero.md) (Pro): A landing-page hero: glass columns of one colour hang from the top behind left-aligned words and two actions, carved away around the product window below.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/prompt-hero/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
