Skip to content
Marketing 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.

217 lineslucide-reactAdded 13 Aug 2026Updated 2 Sept 2026
  • features
  • tabs
  • showcase
  • interactive
  • product

What's included

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

Works with

  • React
  • Next.js
  • Tailwind CSS
  • TypeScript

npx hoverlab add feature-tabs

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

One tool, three jobs

Pick the part of the pipeline that hurts most.

Reviews that start themselves

  • Reviewers assigned by file ownership, not by whoever is online
  • Stale approvals dismissed automatically when the diff changes
  • Merge unblocks the moment the last required check goes green

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

Source

components/feature-tabs.tsx
'use client'

/**
 * <FeatureTabs> — a feature section where the features take turns.
 *
 * When three features compete for attention on one scroll, each gets a
 * third of it and the page gets long. Tabs give every feature the whole
 * stage — full headline, full mock panel — and the labels double as a
 * table of contents the reader sees before committing to any of them.
 *
 * Wired as a real tablist: roving tabindex, arrow-key movement with
 * wraparound, `aria-selected` and `aria-controls` — not three buttons
 * toggling a div, which reads as nothing to a screen reader.
 */

import * as React from 'react'
import { GitBranch, BellRing, BarChart3, Check } from 'lucide-react'

interface FeatureTab {
  id: string
  label: string
  icon: React.ReactNode
  headline: string
  points: string[]
  panel: React.ReactNode
}

export interface FeatureTabsProps {
  heading?: string
  subheading?: string
  className?: string
}

const TABS: FeatureTab[] = [
  {
    id: 'reviews',
    label: 'Reviews',
    icon: <GitBranch aria-hidden className="h-4 w-4" />,
    headline: 'Reviews that start themselves',
    points: [
      'Reviewers assigned by file ownership, not by whoever is online',
      'Stale approvals dismissed automatically when the diff changes',
      'Merge unblocks the moment the last required check goes green',
    ],
    panel: (
      <div className="space-y-3">
        <div className="flex items-center justify-between rounded-lg border border-border/60 bg-background p-3">
          <div className="h-2 w-2/5 rounded bg-foreground/30 border border-transparent" />
          <div className="h-5 w-16 rounded-full bg-emerald-500/20 border border-transparent" />
        </div>
        <div className="flex items-center justify-between rounded-lg border border-border/60 bg-background p-3">
          <div className="h-2 w-1/2 rounded bg-foreground/30 border border-transparent" />
          <div className="h-5 w-16 rounded-full bg-amber-500/20 border border-transparent" />
        </div>
        <div className="rounded-lg border border-primary/40 bg-primary/5 p-3">
          <div className="h-2 w-1/3 rounded bg-primary/50 border border-transparent" />
          <div className="mt-2 h-2 w-3/4 rounded bg-muted-foreground/25 border border-transparent" />
        </div>
      </div>
    ),
  },
  {
    id: 'alerts',
    label: 'Alerts',
    icon: <BellRing aria-hidden className="h-4 w-4" />,
    headline: 'Alerts that respect the on-call',
    points: [
      'Duplicate incidents grouped into one page, not forty',
      'Severity inferred from blast radius before anyone is woken',
      'Quiet hours honoured for everything below SEV-1',
    ],
    panel: (
      <div className="space-y-3">
        <div className="flex items-center gap-3 rounded-lg border border-destructive/40 bg-destructive/5 p-3">
          <div className="h-8 w-8 shrink-0 rounded-full bg-destructive/20 border border-transparent" />
          <div className="flex-1 space-y-2">
            <div className="h-2 w-1/2 rounded bg-destructive/40 border border-transparent" />
            <div className="h-2 w-3/4 rounded bg-muted-foreground/25 border border-transparent" />
          </div>
        </div>
        {['w-2/3', 'w-1/2'].map((w) => (
          <div
            key={w}
            className="flex items-center gap-3 rounded-lg border border-border/60 bg-background p-3 opacity-60"
          >
            <div className="h-8 w-8 shrink-0 rounded-full bg-muted border border-transparent" />
            <div className={`h-2 ${w} rounded bg-muted-foreground/25`} />
          </div>
        ))}
      </div>
    ),
  },
  {
    id: 'insights',
    label: 'Insights',
    icon: <BarChart3 aria-hidden className="h-4 w-4" />,
    headline: 'Insights without a data team',
    points: [
      'Cycle time, review latency and deploy frequency out of the box',
      'Trends over quarters, not screenshots of last week',
      'Every number links to the pull requests behind it',
    ],
    panel: (
      <div className="flex h-full min-h-40 items-end gap-2 rounded-lg border border-border/60 bg-background p-4">
        {[35, 55, 40, 70, 60, 85, 75].map((h, i) => (
          <div key={i} style={{ height: `${h}%` }} className={`flex-1 rounded-t ${i === 5 ? 'bg-primary/70' : 'bg-primary/25'}`} />
        ))}
      </div>
    ),
  },
]

export function FeatureTabs({
  heading = 'One tool, three jobs',
  subheading = 'Pick the part of the pipeline that hurts most.',
  className = '',
}: FeatureTabsProps) {
  const [active, setActive] = React.useState(0)
  const tabRefs = React.useRef<(HTMLButtonElement | null)[]>([])

  /**
   * Per-instance id prefix.
   *
   * The ids used to be `feature-tab-${t.id}` — unique within one instance
   * and duplicated the moment a second <FeatureTabs> appeared on the same
   * page, which is exactly what a catalog hub does and what any site with
   * two feature sections does. Duplicate ids are not a lint nicety here:
   * `aria-controls` and `aria-labelledby` resolve to whichever element comes
   * first in the document, so the second tablist silently points at the
   * first one's panels and a screen reader reads the wrong content.
   *
   * `useId()` is React's answer and is stable across server and client
   * render, which a counter or a random string is not.
   */
  const uid = React.useId()

  const onKeyDown = (event: React.KeyboardEvent) => {
    let next: number | null = null
    if (event.key === 'ArrowRight') next = (active + 1) % TABS.length
    if (event.key === 'ArrowLeft') next = (active - 1 + TABS.length) % TABS.length
    if (event.key === 'Home') next = 0
    if (event.key === 'End') next = TABS.length - 1
    if (next !== null) {
      event.preventDefault()
      setActive(next)
      tabRefs.current[next]?.focus()
    }
  }

  const tab = TABS[active]

  return (
    <section className={`mx-auto w-full max-w-6xl px-4 py-16 sm:px-6 lg:px-8 ${className}`}>
      <div className="mx-auto mb-10 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>

      <div
        role="tablist"
        aria-label="Product features"
        onKeyDown={onKeyDown}
        className="mx-auto mb-10 flex w-fit flex-wrap justify-center gap-1 rounded-xl border border-border/60 bg-muted/50 p-1"
      >
        {TABS.map((t, i) => (
          <button
            key={t.id}
            ref={(el) => { tabRefs.current[i] = el }}
            type="button"
            role="tab"
            id={`${uid}-tab-${t.id}`}
            aria-selected={i === active}
            aria-controls={`${uid}-panel-${t.id}`}
            tabIndex={i === active ? 0 : -1}
            onClick={() => setActive(i)}
            className={`inline-flex items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors ${
              i === active
                ? 'bg-background text-foreground shadow-sm'
                : 'text-muted-foreground hover:text-foreground'
            }`}
          >
            {t.icon}
            {t.label}
          </button>
        ))}
      </div>

      <div
        role="tabpanel"
        id={`${uid}-panel-${tab.id}`}
        aria-labelledby={`${uid}-tab-${tab.id}`}
        className="grid items-center gap-10 lg:grid-cols-2"
      >
        <div>
          <h3 data-stress-ignore className="text-balance text-2xl font-bold tracking-tight">{tab.headline}</h3>
          <ul className="mt-6 space-y-4">
            {tab.points.map((point) => (
              <li key={point} className="flex items-start gap-3 text-sm leading-relaxed">
                <span
                  aria-hidden
                  className="mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary"
                >
                  <Check className="h-3 w-3" />
                </span>
                <span className="text-muted-foreground">{point}</span>
              </li>
            ))}
          </ul>
        </div>
        <div aria-hidden className="rounded-2xl border border-border/60 bg-card/80 p-5 sm:p-6">
          {tab.panel}
        </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-tabs.tsx and import it where you need the section:

import { FeatureTabs } from '@/components/feature-tabs'

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
headingstring'One tool, three jobs'
subheadingstring'Pick the part of the pipeline that hurts most.'
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.

feature-tabs.html
<!--
  Tabbed Feature Showcase — 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="mx-auto w-full max-w-6xl px-4 py-16 sm:px-6 lg:px-8 ">
  <div class="mx-auto mb-10 max-w-2xl text-center">
    <h2 class="text-balance text-3xl font-bold tracking-tight sm:text-4xl">One tool, three jobs</h2>
    <p class="mt-3 text-muted-foreground">Pick the part of the pipeline that hurts most.</p>
  </div>
  <div role="tablist" aria-label="Product features" class="mx-auto mb-10 flex w-fit flex-wrap justify-center gap-1 rounded-xl border border-border/60 bg-muted/50 p-1">
    <button type="button" role="tab" id="_R_0_-tab-reviews" aria-selected="true" aria-controls="_R_0_-panel-reviews" tabindex="0" class="inline-flex items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors bg-background text-foreground shadow-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-git-branch h-4 w-4" aria-hidden="true"><line x1="6" x2="6" y1="3" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path></svg>Reviews</button>
    <button type="button" role="tab" id="_R_0_-tab-alerts" aria-selected="false" aria-controls="_R_0_-panel-alerts" tabindex="-1" class="inline-flex items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors text-muted-foreground hover:text-foreground"><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-bell-ring h-4 w-4" aria-hidden="true"><path d="M10.268 21a2 2 0 0 0 3.464 0"></path><path d="M22 8c0-2.3-.8-4.3-2-6"></path><path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"></path><path d="M4 2C2.8 3.7 2 5.7 2 8"></path></svg>Alerts</button>
    <button type="button" role="tab" id="_R_0_-tab-insights" aria-selected="false" aria-controls="_R_0_-panel-insights" tabindex="-1" class="inline-flex items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors text-muted-foreground hover:text-foreground"><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-chart-column h-4 w-4" aria-hidden="true"><path d="M3 3v16a2 2 0 0 0 2 2h16"></path><path d="M18 17V9"></path><path d="M13 17V5"></path><path d="M8 17v-3"></path></svg>Insights</button>
  </div>
  <div role="tabpanel" id="_R_0_-panel-reviews" aria-labelledby="_R_0_-tab-reviews" class="grid items-center gap-10 lg:grid-cols-2">
    <div>
      <h3 data-stress-ignore="true" class="text-balance text-2xl font-bold tracking-tight">Reviews that start themselves</h3>
      <ul class="mt-6 space-y-4">
        <li class="flex items-start gap-3 text-sm leading-relaxed">
          <span aria-hidden="true" class="mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary">
            <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 h-3 w-3" aria-hidden="true">
              <path d="M20 6 9 17l-5-5"></path>
            </svg>
          </span>
          <span class="text-muted-foreground">Reviewers assigned by file ownership, not by whoever is online</span>
        </li>
        <li class="flex items-start gap-3 text-sm leading-relaxed">
          <span aria-hidden="true" class="mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary">
            <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 h-3 w-3" aria-hidden="true">
              <path d="M20 6 9 17l-5-5"></path>
            </svg>
          </span>
          <span class="text-muted-foreground">Stale approvals dismissed automatically when the diff changes</span>
        </li>
        <li class="flex items-start gap-3 text-sm leading-relaxed">
          <span aria-hidden="true" class="mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary">
            <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 h-3 w-3" aria-hidden="true">
              <path d="M20 6 9 17l-5-5"></path>
            </svg>
          </span>
          <span class="text-muted-foreground">Merge unblocks the moment the last required check goes green</span>
        </li>
      </ul>
    </div>
    <div aria-hidden="true" class="rounded-2xl border border-border/60 bg-card/80 p-5 sm:p-6">
      <div class="space-y-3">
        <div class="flex items-center justify-between rounded-lg border border-border/60 bg-background p-3">
          <div class="h-2 w-2/5 rounded bg-foreground/30 border border-transparent"></div>
          <div class="h-5 w-16 rounded-full bg-emerald-500/20 border border-transparent"></div>
        </div>
        <div class="flex items-center justify-between rounded-lg border border-border/60 bg-background p-3">
          <div class="h-2 w-1/2 rounded bg-foreground/30 border border-transparent"></div>
          <div class="h-5 w-16 rounded-full bg-amber-500/20 border border-transparent"></div>
        </div>
        <div class="rounded-lg border border-primary/40 bg-primary/5 p-3">
          <div class="h-2 w-1/3 rounded bg-primary/50 border border-transparent"></div>
          <div class="mt-2 h-2 w-3/4 rounded bg-muted-foreground/25 border border-transparent"></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.
  • 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.

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

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.

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

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