Skip to content
Marketing block

Developer Hero with Install Command

A drawn terminal whose install line is real, selectable text with a working copy button and a feature-detected clipboard call — the hero for anything adopted by typing rather than signing up.

163 lineslucide-reactAdded 13 Aug 2026Updated 10 Sept 2026
  • hero
  • developer
  • terminal
  • cli
  • copy

What's included

  • components/hero-terminal.tsx
  • Needs lucide-react

Works with

  • React
  • Next.js
  • Tailwind CSS
  • TypeScript

npx hoverlab add hero-terminal

Or over MCP, from your editor's agent — no account needed.

License

Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.

Was this useful?

Start a page with this section — add more, order them, and leave with the page source.

Preview

v2.4 — zero-config

One command. Every component.

Install the CLI and pull any section straight into your project, typed and themed against your own tokens.

npx hoverlab@latest init

Rendered live in your current theme — this is the same component whose source is below, not a screenshot of it.

Source

components/hero-terminal.tsx
/**
 * <HeroTerminal> — a developer hero whose call to action is an install line.
 *
 * For anything a developer adopts by typing rather than by signing up: a
 * CLI, an SDK, a framework. The primary button is still there, but the
 * install command is the thing most visitors actually came for, so it gets
 * the visual weight and a copy button that works.
 *
 * The terminal is `aria-hidden` where it is decorative — the scrollback
 * lines are a drawing of a session, not a session — but the command itself
 * is not. It sits in a real `<code>` with a real button beside it, because
 * "copy the install line" is the one interaction on this page that has to
 * work with a keyboard and a screen reader.
 *
 * `navigator.clipboard` is feature-detected rather than assumed: it is
 * undefined on insecure origins, and an unguarded call throws where a
 * visitor can see it.
 */

'use client'

import * as React from 'react'
import { ArrowRight, Check, Copy, Terminal } from 'lucide-react'

export interface HeroTerminalProps {
  eyebrow?: string
  heading?: string
  subheading?: string
  /** The install line. Shown verbatim and copied verbatim. */
  command?: string
  primaryLabel?: string
  primaryHref?: string
  secondaryLabel?: string
  secondaryHref?: string
  /** Fake scrollback under the command — purely decorative. */
  output?: string[]
  className?: string
}

const DEFAULT_OUTPUT = [
  'resolving dependencies…',
  'added 3 packages in 1.2s',
  'created hoverlab.config.ts',
  'ready — run `npm run dev`',
]

export function HeroTerminal({
  eyebrow = 'v2.4 — zero-config',
  heading = 'One command. Every component.',
  subheading =
    'Install the CLI and pull any section straight into your project, typed and themed against your own tokens.',
  command = 'npx hoverlab@latest init',
  primaryLabel = 'Read the docs',
  primaryHref = '#',
  secondaryLabel = 'Browse components',
  secondaryHref = '#',
  output = DEFAULT_OUTPUT,
  className = '',
}: HeroTerminalProps) {
  const [copied, setCopied] = React.useState(false)

  // Reset the confirmation, and clear the timer if the block unmounts first.
  React.useEffect(() => {
    if (!copied) return
    const id = window.setTimeout(() => setCopied(false), 2000)
    return () => window.clearTimeout(id)
  }, [copied])

  async function copy() {
    try {
      await navigator.clipboard?.writeText(command)
      setCopied(true)
    } catch {
      // Clipboard denied or unavailable — the command is still selectable.
    }
  }

  return (
    <section className={`relative overflow-hidden ${className}`}>
      <div aria-hidden className="pointer-events-none absolute inset-0 -z-10">
        <div className="absolute left-1/2 top-0 h-72 w-[36rem] -translate-x-1/2 rounded-full bg-primary/15 blur-3xl border border-transparent" />
      </div>

      <div className="mx-auto w-full max-w-4xl px-4 py-20 text-center sm:px-6 lg:px-8 lg:py-28">
        {eyebrow ? (
          <span className="inline-flex items-center gap-1.5 rounded-full border border-border/60 bg-card/60 px-3 py-1 font-mono text-xs text-muted-foreground backdrop-blur">
            <Terminal aria-hidden className="h-3.5 w-3.5" />
            {eyebrow}
          </span>
        ) : null}

        <h1 className="mt-6 text-balance break-words text-4xl font-extrabold tracking-tight sm:text-5xl lg:text-6xl">
          {heading}
        </h1>

        <p className="mx-auto mt-5 max-w-xl text-pretty text-base leading-relaxed text-muted-foreground sm:text-lg">
          {subheading}
        </p>

        {/* -- Terminal ------------------------------------------------- */}
        <div className="mx-auto mt-10 max-w-2xl overflow-hidden rounded-2xl border border-border/60 bg-card/80 text-start shadow-2xl shadow-black/20 backdrop-blur">
          <div aria-hidden className="flex items-center gap-1.5 border-b border-border/60 px-4 py-2.5">
            <span className="h-2.5 w-2.5 rounded-full bg-rose-500/70 border border-transparent" />
            <span className="h-2.5 w-2.5 rounded-full bg-amber-500/70 border border-transparent" />
            <span className="h-2.5 w-2.5 rounded-full bg-emerald-500/70 border border-transparent" />
            <span className="ms-2 font-mono text-[11px] text-muted-foreground">bash</span>
          </div>

          <div className="space-y-1 bg-background/70 p-4 font-mono text-sm">
            <div className="flex items-center gap-3">
              <code className="min-w-0 flex-1 truncate">
                <span aria-hidden className="me-2 select-none text-primary">
                  $
                </span>
                {command}
              </code>
              <button
                type="button"
                onClick={copy}
                className="inline-flex shrink-0 items-center gap-1.5 rounded-lg border border-border/60 px-2.5 py-1.5 text-xs font-medium transition-colors hover:bg-card focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
              >
                {copied ? (
                  <Check aria-hidden className="h-3.5 w-3.5 text-emerald-500" />
                ) : (
                  <Copy aria-hidden className="h-3.5 w-3.5" />
                )}
                {copied ? 'Copied' : 'Copy'}
              </button>
            </div>

            <div aria-hidden className="space-y-1 pt-2 text-xs text-muted-foreground">
              {/* Keyed by position, not by content. Terminal output is a fixed
                  list of display lines that never reorders or filters, and a
                  blank line is how a caller spaces it — so keying by the line
                  itself collides on the second `''` and React drops one of
                  them. `developer-portfolio-page` passes two. */}
              {output.map((line, i) => (
                <div key={i}>{line}</div>
              ))}
            </div>
          </div>
        </div>

        <div className="mt-8 flex flex-col justify-center gap-3 sm:flex-row">
          <a
            href={primaryHref}
            className="inline-flex h-12 items-center justify-center gap-1.5 rounded-xl bg-primary px-6 text-sm font-semibold text-primary-foreground shadow-lg shadow-primary/25 transition-transform hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
          >
            {primaryLabel}
            <ArrowRight aria-hidden className="h-4 w-4 rtl:rotate-180" />
          </a>
          <a
            href={secondaryHref}
            className="inline-flex h-12 items-center justify-center rounded-xl border border-border/60 bg-card/60 px-6 text-sm font-semibold backdrop-blur transition-colors hover:bg-card focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
          >
            {secondaryLabel}
          </a>
        </div>
      </div>
    </section>
  )
}

Before you paste

  • Styling is Tailwind utility classes on semantic tokens (bg-card, text-muted-foreground) — it inherits your theme instead of overriding it.
  • Install: npm i lucide-react
  • Every prop has a default, so it renders standalone before you wire it up.

Where it goes

Drop it at components/hero-terminal.tsx and import it where you need the section:

import { HeroTerminal } from '@/components/hero-terminal'

Customize

7 of this block’s props are simple enough to drive from here. Change them and the block below re-renders — it is the same component whose source is above, not a mock of it. Everything else it accepts is in the table underneath.

Props

Read out of the component’s own type and signature, so this cannot drift from the source below. Every prop has a default — the component renders standalone before you pass it anything.

PropTypeDefault
eyebrowstring'v2.4 — zero-config'
headingstring'One command. Every component.'
subheadingstring—
commandThe install line. Shown verbatim and copied verbatim.string'npx hoverlab@latest init'
primaryLabelstring'Read the docs'
primaryHrefstring'#'
secondaryLabelstring'Browse components'
secondaryHrefstring'#'
outputFake scrollback under the command — purely decorative.string[]DEFAULT_OUTPUT
classNamestring''

Not using React?

The same block rendered once to markup, wrapped as a file your framework compiles. Tailwind classes are framework-agnostic, so the design transfers intact — the behaviour does not.

This block is interactive. The markup below is its initial state with the event handlers stripped — you will need to re-wire the behaviour in your framework.

hero-terminal.html
<!--
  Developer Hero with Install Command — markup from the Hoverlab catalog.

  This is the block rendered once to HTML and wrapped as a component
  file. It is not a port of the React source: the Tailwind classes carry
  the design, which is the part that took the work, and they are the same
  in every framework.

  This block is interactive in React and the handlers are NOT here.
  Buttons, toggles and menus render in their initial state and do
  nothing until you wire them up.
-->
<section class="relative overflow-hidden ">
  <div aria-hidden="true" class="pointer-events-none absolute inset-0 -z-10">
    <div class="absolute left-1/2 top-0 h-72 w-[36rem] -translate-x-1/2 rounded-full bg-primary/15 blur-3xl border border-transparent"></div>
  </div>
  <div class="mx-auto w-full max-w-4xl px-4 py-20 text-center sm:px-6 lg:px-8 lg:py-28">
    <span class="inline-flex items-center gap-1.5 rounded-full border border-border/60 bg-card/60 px-3 py-1 font-mono text-xs text-muted-foreground backdrop-blur"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-terminal h-3.5 w-3.5" aria-hidden="true"><path d="M12 19h8"></path><path d="m4 17 6-6-6-6"></path></svg>v2.4 — zero-config</span>
    <h1 class="mt-6 text-balance break-words text-4xl font-extrabold tracking-tight sm:text-5xl lg:text-6xl">One command. Every component.</h1>
    <p class="mx-auto mt-5 max-w-xl text-pretty text-base leading-relaxed text-muted-foreground sm:text-lg">Install the CLI and pull any section straight into your project, typed and themed against your own tokens.</p>
    <div class="mx-auto mt-10 max-w-2xl overflow-hidden rounded-2xl border border-border/60 bg-card/80 text-start shadow-2xl shadow-black/20 backdrop-blur">
      <div aria-hidden="true" class="flex items-center gap-1.5 border-b border-border/60 px-4 py-2.5">
        <span class="h-2.5 w-2.5 rounded-full bg-rose-500/70 border border-transparent"></span>
        <span class="h-2.5 w-2.5 rounded-full bg-amber-500/70 border border-transparent"></span>
        <span class="h-2.5 w-2.5 rounded-full bg-emerald-500/70 border border-transparent"></span>
        <span class="ms-2 font-mono text-[11px] text-muted-foreground">bash</span>
      </div>
      <div class="space-y-1 bg-background/70 p-4 font-mono text-sm">
        <div class="flex items-center gap-3">
          <code class="min-w-0 flex-1 truncate"><span aria-hidden="true" class="me-2 select-none text-primary">$</span>npx hoverlab@latest init</code>
          <button type="button" class="inline-flex shrink-0 items-center gap-1.5 rounded-lg border border-border/60 px-2.5 py-1.5 text-xs font-medium transition-colors hover:bg-card focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy h-3.5 w-3.5" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg>Copy</button>
        </div>
        <div aria-hidden="true" class="space-y-1 pt-2 text-xs text-muted-foreground">
          <div>resolving dependencies…</div>
          <div>added 3 packages in 1.2s</div>
          <div>created hoverlab.config.ts</div>
          <div>ready — run `npm run dev`</div>
        </div>
      </div>
    </div>
    <div class="mt-8 flex flex-col justify-center gap-3 sm:flex-row">
      <a href="#" class="inline-flex h-12 items-center justify-center gap-1.5 rounded-xl bg-primary px-6 text-sm font-semibold text-primary-foreground shadow-lg shadow-primary/25 transition-transform hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">Read the docs<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right h-4 w-4 rtl:rotate-180" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a>
      <a href="#" class="inline-flex h-12 items-center justify-center rounded-xl border border-border/60 bg-card/60 px-6 text-sm font-semibold backdrop-blur transition-colors hover:bg-card focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">Browse components</a>
    </div>
  </div>
</section>
  • This is rendered HTML, not a translation of the React source. The Tailwind classes carry the design and work in any framework.
  • It is one frame: the component in its initial state, with no props applied beyond the defaults.
  • This block is interactive in React — toggles, menus or form state. None of that survives here; the markup is the closed/default state and the handlers are gone. Re-wire them in your own framework.
  • Requires Tailwind, and the design tokens the classes reference (bg-card, text-muted-foreground, and so on). The template ZIPs ship a globals.css that defines them.

What each framework gets across the whole catalog — effects convert properly; this rung is markup.

For AI

The component, its props, the design tokens it expects and the command that installs it — as one prompt. Paste it into Claude, Cursor, v0 or ChatGPT and what they build around it will match the rest of the catalog instead of inventing its own system.

See the prompt

Used in these pages

Want the whole screen instead of this one section? Open a page and copy it entire.

13 more blocks in Heroes

All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.

Browse Heroes

Shipping one commercially

Copying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.

  • A commercial licence for everything in the catalog
  • Unlimited bundle exports, in Vue, Svelte and Tailwind
  • One payment — no subscription, nothing to renew
Pro — $79 once

More Heroes blocks

View category
Open the full page for this block

Split Hero with Product Panel

Copy on the left, a drawn product panel on the right — the default hero for anything with an interface to show, with no image asset to host and no layout shift while it loads.

Heroes176 lines1 dep
Open the full page for this block

Centered Announcement Hero

A linked announcement pill over a large centered headline, dual CTAs and a wordmark strip — the hero for a product with nothing to screenshot yet.

Heroes125 lines1 dep
Open the full page for this block

Hero with Browser Frame

Centered copy above a screenshot in window chrome, masked at the bottom so a tall image never dictates the height of the fold. Wraps your own img or video.

Heroes191 lines1 dep
Open the full page for this block

Waitlist Hero with Email Capture

A pre-launch hero whose only ask is an email address, with pending and success states and a signup count that argues for finishing rather than starting.

Heroes163 lines1 dep
Open the full page for this block

Search-First Hero

A hero whose primary action is a real search form with prefilling suggestion chips — for marketplaces and directories, where sending the visitor below the fold to find the search box is the whole failure.

Heroes128 lines1 dep
Open the full page for this block

App Download Hero with Phone

A drawn phone beside two store links built as real anchors rather than badge images, so they inherit the theme, need no hosted asset and carry an accessible name that is not a filename.

Heroes161 lines1 dep
Open the full page for this block

Hero Anchored by a Customer Quote

Pitch on the left, a marked-up figure and blockquote on the right, so the claim and the evidence for it share the fold instead of sitting a scroll apart.

Heroes129 lines1 dep
Open the full page for this block

Hero with Proof Metrics

A centered hero closing on a definition list of scale numbers, with a masked grid wash behind it — for infrastructure and payments, where "how many" is the second question a buyer asks.

Heroes129 lines1 dep
Open the full page for this block

Editorial Masthead Hero

A serif display headline over a 60-character standfirst and a real byline, with one text link and no competing CTAs — the hero for publications and essays, where the writing is the product.

Heroes99 lines1 dep
Open the full page for this block

Full-Bleed Media Hero

Copy over your own image or video, with a graded scrim and deliberately fixed light-on-dark text — because the background is a photograph in both themes, so flipping the copy would break it.

Heroes106 lines1 dep
Open the full page for this block

Integration Wall Hero

A hero whose visual is the connector list itself, marked up as a real list so a visitor can skim it for their own stack — asset-free initials tiles, no third-party marks to license.

Heroes135 lines1 dep
Open the full page for this block

Appointment Booking Hero

A day strip built as a radio group rather than buttons, so arrow keys move between dates and sold-out days disable properly — the fold for anything sold by the appointment.

Heroes168 lines1 dep
Open the full page for this block

Hero with Inline Price

Names the price above the fold for single-plan and one-time products, with the former price in a real strikethrough element so it is never announced as the current one.

Heroes135 lines1 dep