Updated
Prompt Hero
ProCustomize
Colours
Installation
ProPrompt Hero is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Buying? Use the email you'll sign in with. Your license is tied to it.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/prompt-hero
Loading your installation…
Usage
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={<…/>}/>Where to use Prompt Hero
AI website and app builders
The prompt is the product: people can start typing the moment the page loads.
Pairs with ASCII Field
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
Props
PromptHero- colors
- Type string[]
- ["#06164a","#1e3fd8","#2f6bff","#3d8bff","#7cb4ff"]
- The glyphs and the input's edge, from faint to bright, 2 to 6.
- characters
- Type string
- " .:-=+*#%@"
- Glyphs from empty to dense; the first is usually a space.
- motion
- Type boolean
- true
- The field drifts on its own. Off holds a still frame.
- interactive
- Type boolean
- true
- The pointer lenses the field and leaves a trail; a click sends a ring of type out.
- fill
- Type boolean
- true
- Fill exactly one screen height. Off sizes to the content.
- entrance
- Type boolean
- true
- The words rise in one after another on first paint.
- announcement
- Type string
- "We raised $24M in our Series A"
- Small line above the title, e.g. a funding round. Empty hides it.
- title
- Type string
- "Turn an idea into a website|in one conversation."
- The title; a | starts a new line.
- description
- Type 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
- Type string
- "Trusted by teams at"
- Label over the logo marquee at the bottom.
- examples
- Type 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.
- onSubmit
- Type (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
- Type ReactNode
- –
- Mark at the start of the announcement, e.g. the lead investor's; draw it in currentColor.
- announcementHref
- Type string
- "#"
- Where the announcement links to.
- logos
- Type ReactNode[]
- –
- Company logos drifting along the bottom; draw them in currentColor. Empty hides the row.
- className
- Type string
- –
- Classes for the section.