Skip to content
Marketing block

Alternating Feature Rows

A full row per feature with the media side flipping each time, so the eye re-enters the page instead of skimming a stack of identical blocks.

161 lineslucide-reactAdded 24 Aug 2026
  • features
  • alternating
  • zig zag
  • rows
  • marketing

What's included

  • components/feature-rows.tsx
  • Needs lucide-react

Works with

  • React
  • Next.js
  • Tailwind CSS
  • TypeScript

npx hoverlab add feature-rows

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

How it works

Three steps, none of which involve an account.

Browse

Find it without an account

Every component is readable, customisable and copyable before you sign in for anything. Nothing sits behind an email gate, because a gate at the browse step costs more visitors than it captures.

  • No login to copy
  • Public REST API, no key
  • Live preview on every page

Customise

Tune it in the browser, not after pasting

Colour, timing and sizing are editable where you found the component, and what you copy is what you configured — not a default you then have to hunt through and change.

  • Brand colours applied across the catalog
  • Copy reflects your edits

Ship

The code lands in your repo and stops being ours

No runtime dependency, no package that phones home, no version to keep in step. You own the file the moment it is pasted, and updates reach you only when you go and get them.

  • Plain TSX and utility classes
  • No attribution required

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

Source

components/feature-rows.tsx
/**
 * <FeatureRows> — features as alternating rows, image side flipping each time.
 *
 * The oldest shape in marketing layout, and the catalog did not have it.
 * <BentoFeatures> composes six tiles into one asymmetric picture,
 * <FeatureTabs> makes features take turns in a fixed frame, and
 * <CodeShowcase> is a single row with an editor in it. None of them gives a
 * feature a full row of its own, which is what you want when each one needs
 * a paragraph and a picture rather than a caption.
 *
 * The alternation is the whole mechanic. Identical rows stacked the same
 * way read as a list to be skimmed and abandoned; flipping the media side
 * each row forces the eye back across the page and gives each feature a
 * fresh entry point. It is `lg:` only — below that everything is one column
 * and a flipped row would just be an image in a different place with no
 * pattern to break.
 *
 * `order` on the media rather than `direction: rtl` or a reversed array:
 * DOM order stays copy-then-media for every row, so a screen reader and a
 * narrow viewport both get the heading before the picture it belongs to,
 * however the wide layout arranges them.
 *
 * The media is a drawn panel, not an <img>. A feature section built on
 * remote screenshots is a layout shift and a set of assets to host; the
 * shape reads correctly without them, and `media` takes a node for when the
 * real thing is ready.
 */

import * as React from 'react'
import { Check } from 'lucide-react'

export interface FeatureRow {
  eyebrow?: string
  title: string
  body: string
  bullets?: string[]
  /** Replaces the drawn placeholder panel. */
  media?: React.ReactNode
}

export interface FeatureRowsProps {
  rows?: FeatureRow[]
  heading?: string
  subheading?: string
  className?: string
}

const DEFAULT_ROWS: FeatureRow[] = [
  {
    eyebrow: 'Browse',
    title: 'Find it without an account',
    body:
      'Every component is readable, customisable and copyable before you sign in for anything. Nothing sits behind an email gate, because a gate at the browse step costs more visitors than it captures.',
    bullets: ['No login to copy', 'Public REST API, no key', 'Live preview on every page'],
  },
  {
    eyebrow: 'Customise',
    title: 'Tune it in the browser, not after pasting',
    body:
      'Colour, timing and sizing are editable where you found the component, and what you copy is what you configured — not a default you then have to hunt through and change.',
    bullets: ['Brand colours applied across the catalog', 'Copy reflects your edits'],
  },
  {
    eyebrow: 'Ship',
    title: 'The code lands in your repo and stops being ours',
    body:
      'No runtime dependency, no package that phones home, no version to keep in step. You own the file the moment it is pasted, and updates reach you only when you go and get them.',
    bullets: ['Plain TSX and utility classes', 'No attribution required'],
  },
]

/** The stand-in panel, when a row brings no media of its own. */
function PlaceholderPanel() {
  return (
    <div
      aria-hidden
      className="aspect-[4/3] w-full rounded-2xl border border-border/60 bg-gradient-to-br from-muted/60 to-card p-6"
    >
      <div className="flex h-full flex-col gap-3 rounded-xl border border-border/50 bg-background/60 p-4">
        <div className="h-2.5 w-1/3 rounded-full bg-muted-foreground/25 border border-transparent" />
        <div className="h-2 w-3/4 rounded-full bg-muted-foreground/15 border border-transparent" />
        <div className="h-2 w-2/3 rounded-full bg-muted-foreground/15 border border-transparent" />
        <div className="mt-auto grid grid-cols-3 gap-2">
          <div className="h-10 rounded-lg bg-muted-foreground/10 border border-transparent" />
          <div className="h-10 rounded-lg bg-muted-foreground/10 border border-transparent" />
          <div className="h-10 rounded-lg bg-muted-foreground/10 border border-transparent" />
        </div>
      </div>
    </div>
  )
}

export function FeatureRows({
  rows = DEFAULT_ROWS,
  heading = 'How it works',
  subheading = 'Three steps, none of which involve an account.',
  className = '',
}: FeatureRowsProps) {
  return (
    <section
      className={`mx-auto w-full max-w-6xl px-4 py-16 sm:px-6 sm:py-24 ${className}`}
    >
      {heading ? (
        <div className="mx-auto mb-16 max-w-2xl text-center">
          <h2 className="text-balance text-3xl font-bold tracking-tight sm:text-4xl">
            {heading}
          </h2>
          {subheading ? (
            <p className="mt-3 text-muted-foreground">{subheading}</p>
          ) : null}
        </div>
      ) : null}

      <div className="space-y-20 sm:space-y-28">
        {rows.map((row, i) => (
          <div
            key={row.title}
            className="grid items-center gap-8 lg:grid-cols-2 lg:gap-16"
          >
            <div>
              {row.eyebrow ? (
                <p className="text-sm font-semibold uppercase tracking-wide text-primary">
                  {row.eyebrow}
                </p>
              ) : null}
              <h3
                data-stress-ignore
                className="mt-2 text-balance text-2xl font-bold tracking-tight sm:text-3xl"
              >
                {row.title}
              </h3>
              <p className="mt-4 text-pretty leading-relaxed text-muted-foreground">
                {row.body}
              </p>
              {row.bullets?.length ? (
                <ul className="mt-6 space-y-2.5">
                  {row.bullets.map((b) => (
                    <li key={b} className="flex items-start gap-2.5 text-sm">
                      <Check
                        aria-hidden
                        className="mt-0.5 h-4 w-4 shrink-0 text-emerald-500"
                      />
                      <span className="text-foreground/90">{b}</span>
                    </li>
                  ))}
                </ul>
              ) : null}
            </div>

            {/* Odd rows put the media first at `lg`. Visual order only — the
                copy stays ahead of it in the DOM for every row. */}
            <div className={i % 2 === 1 ? 'lg:order-first' : undefined}>
              {row.media ?? <PlaceholderPanel />}
            </div>
          </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/feature-rows.tsx and import it where you need the section:

import { FeatureRows } from '@/components/feature-rows'

Customize

2 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
rowsFeatureRow[]DEFAULT_ROWS
headingstring'How it works'
subheadingstring'Three steps, none of which involve an account.'
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.

feature-rows.html
<!--
  Alternating Feature Rows — 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 has no interactive behaviour, so nothing is missing.
-->
<section class="mx-auto w-full max-w-6xl px-4 py-16 sm:px-6 sm:py-24 ">
  <div class="mx-auto mb-16 max-w-2xl text-center">
    <h2 class="text-balance text-3xl font-bold tracking-tight sm:text-4xl">How it works</h2>
    <p class="mt-3 text-muted-foreground">Three steps, none of which involve an account.</p>
  </div>
  <div class="space-y-20 sm:space-y-28">
    <div class="grid items-center gap-8 lg:grid-cols-2 lg:gap-16">
      <div>
        <p class="text-sm font-semibold uppercase tracking-wide text-primary">Browse</p>
        <h3 data-stress-ignore="true" class="mt-2 text-balance text-2xl font-bold tracking-tight sm:text-3xl">Find it without an account</h3>
        <p class="mt-4 text-pretty leading-relaxed text-muted-foreground">Every component is readable, customisable and copyable before you sign in for anything. Nothing sits behind an email gate, because a gate at the browse step costs more visitors than it captures.</p>
        <ul class="mt-6 space-y-2.5">
          <li class="flex items-start gap-2.5 text-sm">
            <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-check mt-0.5 h-4 w-4 shrink-0 text-emerald-500" aria-hidden="true">
              <path d="M20 6 9 17l-5-5"></path>
            </svg>
            <span class="text-foreground/90">No login to copy</span>
          </li>
          <li class="flex items-start gap-2.5 text-sm">
            <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-check mt-0.5 h-4 w-4 shrink-0 text-emerald-500" aria-hidden="true">
              <path d="M20 6 9 17l-5-5"></path>
            </svg>
            <span class="text-foreground/90">Public REST API, no key</span>
          </li>
          <li class="flex items-start gap-2.5 text-sm">
            <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-check mt-0.5 h-4 w-4 shrink-0 text-emerald-500" aria-hidden="true">
              <path d="M20 6 9 17l-5-5"></path>
            </svg>
            <span class="text-foreground/90">Live preview on every page</span>
          </li>
        </ul>
      </div>
      <div>
        <div aria-hidden="true" class="aspect-[4/3] w-full rounded-2xl border border-border/60 bg-gradient-to-br from-muted/60 to-card p-6">
          <div class="flex h-full flex-col gap-3 rounded-xl border border-border/50 bg-background/60 p-4">
            <div class="h-2.5 w-1/3 rounded-full bg-muted-foreground/25 border border-transparent"></div>
            <div class="h-2 w-3/4 rounded-full bg-muted-foreground/15 border border-transparent"></div>
            <div class="h-2 w-2/3 rounded-full bg-muted-foreground/15 border border-transparent"></div>
            <div class="mt-auto grid grid-cols-3 gap-2">
              <div class="h-10 rounded-lg bg-muted-foreground/10 border border-transparent"></div>
              <div class="h-10 rounded-lg bg-muted-foreground/10 border border-transparent"></div>
              <div class="h-10 rounded-lg bg-muted-foreground/10 border border-transparent"></div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="grid items-center gap-8 lg:grid-cols-2 lg:gap-16">
      <div>
        <p class="text-sm font-semibold uppercase tracking-wide text-primary">Customise</p>
        <h3 data-stress-ignore="true" class="mt-2 text-balance text-2xl font-bold tracking-tight sm:text-3xl">Tune it in the browser, not after pasting</h3>
        <p class="mt-4 text-pretty leading-relaxed text-muted-foreground">Colour, timing and sizing are editable where you found the component, and what you copy is what you configured — not a default you then have to hunt through and change.</p>
        <ul class="mt-6 space-y-2.5">
          <li class="flex items-start gap-2.5 text-sm">
            <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-check mt-0.5 h-4 w-4 shrink-0 text-emerald-500" aria-hidden="true">
              <path d="M20 6 9 17l-5-5"></path>
            </svg>
            <span class="text-foreground/90">Brand colours applied across the catalog</span>
          </li>
          <li class="flex items-start gap-2.5 text-sm">
            <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-check mt-0.5 h-4 w-4 shrink-0 text-emerald-500" aria-hidden="true">
              <path d="M20 6 9 17l-5-5"></path>
            </svg>
            <span class="text-foreground/90">Copy reflects your edits</span>
          </li>
        </ul>
      </div>
      <div class="lg:order-first">
        <div aria-hidden="true" class="aspect-[4/3] w-full rounded-2xl border border-border/60 bg-gradient-to-br from-muted/60 to-card p-6">
          <div class="flex h-full flex-col gap-3 rounded-xl border border-border/50 bg-background/60 p-4">
            <div class="h-2.5 w-1/3 rounded-full bg-muted-foreground/25 border border-transparent"></div>
            <div class="h-2 w-3/4 rounded-full bg-muted-foreground/15 border border-transparent"></div>
            <div class="h-2 w-2/3 rounded-full bg-muted-foreground/15 border border-transparent"></div>
            <div class="mt-auto grid grid-cols-3 gap-2">
              <div class="h-10 rounded-lg bg-muted-foreground/10 border border-transparent"></div>
              <div class="h-10 rounded-lg bg-muted-foreground/10 border border-transparent"></div>
              <div class="h-10 rounded-lg bg-muted-foreground/10 border border-transparent"></div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="grid items-center gap-8 lg:grid-cols-2 lg:gap-16">
      <div>
        <p class="text-sm font-semibold uppercase tracking-wide text-primary">Ship</p>
        <h3 data-stress-ignore="true" class="mt-2 text-balance text-2xl font-bold tracking-tight sm:text-3xl">The code lands in your repo and stops being ours</h3>
        <p class="mt-4 text-pretty leading-relaxed text-muted-foreground">No runtime dependency, no package that phones home, no version to keep in step. You own the file the moment it is pasted, and updates reach you only when you go and get them.</p>
        <ul class="mt-6 space-y-2.5">
          <li class="flex items-start gap-2.5 text-sm">
            <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-check mt-0.5 h-4 w-4 shrink-0 text-emerald-500" aria-hidden="true">
              <path d="M20 6 9 17l-5-5"></path>
            </svg>
            <span class="text-foreground/90">Plain TSX and utility classes</span>
          </li>
          <li class="flex items-start gap-2.5 text-sm">
            <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-check mt-0.5 h-4 w-4 shrink-0 text-emerald-500" aria-hidden="true">
              <path d="M20 6 9 17l-5-5"></path>
            </svg>
            <span class="text-foreground/90">No attribution required</span>
          </li>
        </ul>
      </div>
      <div>
        <div aria-hidden="true" class="aspect-[4/3] w-full rounded-2xl border border-border/60 bg-gradient-to-br from-muted/60 to-card p-6">
          <div class="flex h-full flex-col gap-3 rounded-xl border border-border/50 bg-background/60 p-4">
            <div class="h-2.5 w-1/3 rounded-full bg-muted-foreground/25 border border-transparent"></div>
            <div class="h-2 w-3/4 rounded-full bg-muted-foreground/15 border border-transparent"></div>
            <div class="h-2 w-2/3 rounded-full bg-muted-foreground/15 border border-transparent"></div>
            <div class="mt-auto grid grid-cols-3 gap-2">
              <div class="h-10 rounded-lg bg-muted-foreground/10 border border-transparent"></div>
              <div class="h-10 rounded-lg bg-muted-foreground/10 border border-transparent"></div>
              <div class="h-10 rounded-lg bg-muted-foreground/10 border border-transparent"></div>
            </div>
          </div>
        </div>
      </div>
    </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.
  • 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.

7 more blocks in Feature Sections

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 Feature Sections

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 Feature Sections blocks

View category
Open the full page for this block

Bento Feature Grid

Six tiles on an asymmetric 4x3 grid with per-tile spans, a hover glow and a mobile collapse that follows source order.

Feature Sections114 lines1 dep
Open the full page for this block

Icon Feature Grid

Uniform cells, no spans, no state — the grid for nine things that matter equally, where a bento would be a wall and tabs would be a filing cabinet.

Feature Sections150 lines1 dep
Open the full page for this block

Integration Directory Grid

What each integration actually does, not a wall of logos — with availability as a text pill rather than a tinted border, and the name as the link so the card is not one enormous one.

Feature Sections208 linesNo deps
Open the full page for this block

Audience Persona Cards

A "who this is for" grid: four cards naming an audience, the outcome they want and the bullets that get them there.

Feature Sections145 lines1 dep
Open the full page for this block

Editor Window Showcase

A feature section paired with a tabbed fake editor — real selectable code, generated line numbers and a copy button.

Feature Sections164 lines1 dep
Open the full page for this block

Tabbed Feature Showcase

Features as a real tablist — arrow keys, roving focus and a drawn product panel per tab — for the section where four features would otherwise fight for one scroll.

Feature Sections217 lines1 dep
Open the full page for this block

Integration Depth Split

An integrations section that says how deep each one goes, instead of a wall of logos that all imply the same thing.

Feature Sections157 linesNo deps