Single Command Hero

Giveyouragenteveryscreen.

Works with Claude Code, Cursor and Codex. Read the docs

About this block

Single Command HeroPRO

The most minimal install hero: a serif headline that settles in word by word, then one rounded command pill that copies the install command on click and confirms with a tick, and a quiet note with a docs link. No image, no buttons.

Hero188: Single Command Hero

The smallest install hero in the set: a headline that settles in word by word, one rounded pill holding the command, and a single line of reassurance underneath.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Upgrade Now

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/hero188?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/hero188?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/hero188.tsx plus the text1 word stagger it uses.

Quick start

The installed file exports hero188Demo alongside the block: the exact props behind the preview above. Spread it to get a working hero in one line.

tsx
import { Hero188, hero188Demo } from "@/components/beste/block/hero188";

export default function Page() {
  return <Hero188 {...hero188Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Hero188 } from "@/components/beste/block/hero188";

export default function Page() {
  return (
    <Hero188
      heading="Give your agent every screen."
      command="npx your-cli@latest"
      copyLabel="Copy command"
      copiedLabel="Copied"
      note="Works with Claude Code, Cursor and Codex."
      link={{ label: "Read the docs", href: "/docs" }}
    />
  );
}

Props

PropTypeDefaultDescription
headingstringHeadline, rendered as the page h1 through Text1
commandstringThe install command; clicking the pill copies it
copyLabelstringAccessible name for the pill in its resting state
copiedLabelstringAccessible name and live-region text once copied
notestringQuiet line under the pill
link{ label: string; href: string }Optional link that follows the note on the same line
classNamestringExtra classes for the outer <section>
ts
type Link = {
  label: string;
  href: string;
};

Behavior notes

  • The whole pill is the copy target, so there is no separate icon button to aim at. navigator.clipboard is called optionally, so a browser that blocks it still flips the label rather than throwing.
  • The copied state resets itself after two seconds through a cleared setTimeout, so leaving the page mid-flight never leaves a stray timer behind.
  • A visually hidden aria-live region announces the copied label, while the icon swap from copy to tick carries the same message for sighted readers.
  • The headline runs with trigger="mount", since a hero is above the fold and a scroll-triggered stagger would never fire.
  • The note and link are offset from 0.4 + heading.split(" ").length * 0.07, so they arrive after the last word however long the headline runs.
  • Nothing here loads: no photograph, no grain filter, no scroll listener. The section paints as soon as the font does.
  • Every prop is optional, so this collapses to a headline and a pill without any layout compensation.

More Hero blocks

View all Hero
PRO

hero192

Half Photo Command Hero

A full-height split install hero: text on the left with an eyebrow, a serif headline that settles in word by word, an intro, a rounded command pill that copies the install command on click and two sliding-marker pills; on the right an edge-to-edge photograph that blurs in and drifts on scroll with a small caption.

PRO

hero191

Two Steps Hero

A centred install hero that explains itself in two numbered steps under a ruled line: run the command, copied from a rounded pill on click, then ask for a page, shown as an example prompt in a muted mono panel. Serif headline settles in word by word, one sliding-marker pill below.

PRO

hero189

Command on Photo Hero

A full-height photographic install hero: the photo blurs in and drifts slower than the page under a scrim and film grain, a serif headline settles in word by word, then a frosted command pill that copies the install command on click, two sliding-marker pills and a short column of figures.

PRO

hero193

Ink Command Hero

A dark install hero with film grain and no photograph, where the install command itself is the centrepiece: set large in monospace with a hairline underline, it copies on click and confirms with a tick. A short serif headline above, an intro, two sliding-marker pills and a ruled row of three figures below.

PRO

hero190

Terminal Split Hero

A split install hero: on the left an eyebrow, a serif headline that settles in word by word, an intro and two sliding-marker pills; on the right an ink terminal card that drifts on scroll, prints the install command and its output line by line, ends on a blinking cursor and copies the command from its title bar.

PRO

hero195

Three Screens Hero

A centred install hero with a serif headline that settles in word by word, an intro, a rounded command pill that copies the install command on click beside a sliding-marker pill, and under it three portrait page previews that blur in as they load and rise at different speeds on scroll, the middle one sitting higher, each with a small caption.