Skip to content
New

Showcase, tabs

beta

The product one part at a time: tabs above a panel with the part's promise, ticked facts and a link beside its screenshot.

npx rasengan-ui add showcase-tabs

The product

One app for the money side of your work

Three screens you will open every week, and nothing you will not.

Invoices that write themselves

Start from a quote or a timesheet; your rates, taxes and terms fill in. Send it as a link the client can pay from.

  • Quotes become invoices in one click
  • Taxes by country, credit notes included
  • Your logo and colours
See invoicing
The invoice editor: line items, taxes and a total, with the client's details on the side.
Use it
A product with two to five distinct parts, each with a screen worth showing.
Avoid it
One screen to show: hero-centered's product shot is enough.
Built with
ButtonTabs

Installation

Terminal
npx rasengan-ui add showcase-tabs

It installs into components/blocks/showcase-tabs/, with what it uses (Button, Tabs) and lib/blocks.ts.

Usage

Without content, the block shows its example. Pass your own, typed by the block's schema, from a content file (here, the example with one field changed):

app/_routes/index.page.tsx
import { ShowcaseTabs } from "@/components/blocks/showcase-tabs";
import { home } from "@/content/home";
 
export default function Home() {
  return <ShowcaseTabs content={home.showcase} />;
}
content/home.ts
import { example, type ShowcaseTabsContent } from "@/components/blocks/showcase-tabs";
 
export const home = {
  showcase: { ...example, title: "Inside Senbon" } satisfies ShowcaseTabsContent,
};

Two to five tabs, each a part of the product: its promise, up to four ticked facts, an optional link and its screenshot. Every panel stays in the page's HTML, so search engines and find-in-page reach all of them.

Content

FieldTypeLimitsGuidance
eyebrowoptionalstring≤ 24 charsOne or two words above the title: 'The product'.
titlestring8–70 chars
sublineoptionalstring≤ 180 chars
tabsobject[]2–5 items
tabs[].labelstring2–20 charsThe tab: one or two words, 'Invoices', 'Payments'.
tabs[].titlestring4–60 charsWhat this part does for the reader.
tabs[].descriptionstring20–220 chars
tabs[].pointsoptionalstring[]≤ 4 itemsUp to four short facts, ticked.
tabs[].ctaoptionalobject
tabs[].cta.labelstring1–32 charsA verb first, two to four words: 'Start free', 'Book a table'.
tabs[].cta.hrefstringA path ('/pricing'), an anchor ('#menu'), or a full URL.
tabs[].imageobjectThe part of the product, landscape (16:10).
tabs[].image.srcstringA local path ('/images/terrace.jpg') or the project's asset URL.
tabs[].image.altstring≤ 140 charsWhat the image shows, for people who cannot see it. Empty only if purely decorative.
tabs[].image.widthinteger
tabs[].image.heightinteger

Props

PropNotes
contentShowcaseTabsContent; the example when left out
idthe section's id, for anchor links; "showcase" by default
headingLevel1, 2 or 3: the heading's tag; 2 by default
classNameon the <section>, for spacing

Accessibility

  • The tabs follow the WAI-ARIA tabs pattern (arrow keys, Home, End), from Base UI.
  • Each panel's title is a heading one level below the block's.