Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Tabbed Feature Showcase Hero Block for React

A split hero for a code assistant: a headline, a Shine Button and an outline action at the start, and at the end a framed card with underline tabs for features, integrations and pricing.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A split hero that answers three questions without a scroll. At the start, a headline, a sentence, a Shine Button, an outline action and a line of proof; a hairline divider with a + mark where it meets the top rule; and at the end a card in a hairline frame with + marks on its corners. The card's underline tabs, Features, Integrations and Pricing, open a checklist of five points, a grid of eight tools with their icons and categories, or a plan card with the price and what it includes. The card keeps the height of its tallest panel, so nothing moves when a visitor switches, and on a phone it sits under the text with a hairline between them. The checks, the price and the tool tiles are foreground tones, so the primary colour stays on the one button. It's built from Tabs, Shine Button, Button and Guides, with Lucide icons and CSS transitions only. The copy speaks for Wrenlight, a code assistant. For developer tools, SaaS landing pages and any product with a lot to say up front.

FAQ

How do I change what each tab shows?

The data is at the top of the file: FEATURES for the checklist, INTEGRATIONS for the tool grid (each with a name, a category and a Lucide icon) and PLAN for the price (currency, amount and its perks). The layout of each panel is in TabPanel, beside the block, one branch per tab: change a branch to show something else, a screenshot or a video, and the tab itself doesn't change.

How do I add a tab or open a different one first?

Add an entry to TABS with an id and a label, and a branch for that id in TabPanel: the trigger, the panel and the panel's place in the height reserve all come from the list. The tab open on load is defaultValue on Tabs. Three or four short labels fit a phone; the triggers share the card's width there and sit at their own width from the sm breakpoint.

How do keyboard and screen reader users use the tabs?

The switch is our Tabs, a real tab list named Product overview. Tab moves into it, the arrow keys move between Features, Integrations and Pricing and open each one's panel, and Tab again moves into the open panel. Each panel starts with an h2 under the page's h1, and the price reads as "$29 per seat, per month". Only the open panel is in the page; the copies that hold the card's height are hidden from assistive technology and can't be focused.

Why doesn't the page jump when the panels differ in height?

Every panel is also rendered, invisible and inert, in the same grid cell as the open one, so the card is always as tall as the tallest panel at the current width. A short panel leaves some space below it, and nothing under the hero moves when a visitor switches tabs. If one panel grows much taller than the others, consider trimming it, since every tab takes its height.

When should I use a tabbed hero instead of separate sections?

Use tabs when each topic fits in a few lines and visitors look for different things first: some want the feature list, others the price. Use separate sections when a topic needs room to breathe, or when everything should be seen without a click; content in a closed tab isn't in the page until it's opened.

  • Pro

    Tabbed Product Views Hero

    Interactive demos

    A centred showcase hero with a Shine Button and an outline action over a pill tab switch and one wide product window in a hairline frame that shows a chat, a terminal session or a docs page.

  • Pro

    A compact centred hero with a role switch in a band that swaps the headline, the subtitle and a band of three checklist cells for designers, engineers and product teams.

  • Pro

    A showcase hero between solid rails: an announcement link, a centred headline and a Shine Button, over three feature cells with overshooting hairlines, each led by a greyscale vignette of the feature.

  • Pro

    A showcase hero for a single plan: the headline and the price in a card in card, over a grid of eight included features that share their hairlines.

  • Pro

    A compact centered hero that leads with its one price: a launch pill, a headline and a sentence, then the price in a hairline frame beside a Shine Button and three trust points.

  • Pro

    A compact centred how-it-works hero for an invoicing app: a headline, a Shine Button with an outline action and trust copy over a closing band of three step cells, each with a small drawing of its screen.