A horizontal rail of linked cards that starts in line with the heading and bleeds off the right edge: arrow buttons and snap points move it a screen at a time, and each card pairs a drifting photograph with a serif title, a meta line and an arrow that lifts on hover.
A horizontal rail of linked cards that starts in line with the heading and bleeds off the right edge, moved by arrow buttons or a swipe.
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.
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
npx shadcn add "https://ui.beste.co/r/feature301?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/feature301?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/feature301.tsx plus the button22 sliding-marker pill and the text1 word stagger it uses.
The installed file exports feature301Demo alongside the block: the exact props behind the preview above. Spread it to get a working linked Card Rail in one line.
import { Feature301, feature301Demo } from "@/components/beste/block/feature301";
export default function Page() {
return <Feature301 {...feature301Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Feature301 } from "@/components/beste/block/feature301";
export default function Page() {
return (
<Feature301
eyebrow="Everything we offer"
heading="Push the rail. Every card is a page."
button={ label: "Book a first hour", href: "/book" }
labels={ previous: "Previous", next: "Next" }
cards={[
{
title: "Individual therapy",
description: "Weekly or fortnightly, with the same practitioner throughout.",
meta: "60 or 75 minutes",
href: "/therapy",
image: { src: "/services/therapy.jpg", alt: "A low armchair by a window" },
},
]}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | – | Small-caps line above the heading |
heading | string | – | Section heading, rendered as an h2 through Text1 |
button | ActionButton | – | Pill action beside the arrows, and under the rail on a phone |
cards | Card[] | [] | Linked cards along the rail |
labels | Labels | {} | Screen-reader wording for the two arrows |
className | string | – | Extra classes for the outer <section> |
type Card = {
title: string;
description: string;
meta?: string;
href: string;
image: Image;
};
type Labels = {
previous?: string;
next?: string;
};
type Image = { src: string; alt: string };
type ActionButton = {
label: string;
href: string;
tone?: "primary" | "light" | "dark" | "outline";
};paddingLeft and scrollPaddingLeft, so the first card lines up with the heading while the rest of the rail bleeds off the right edge of the page.calc() class, because a Tailwind arbitrary value containing spaces is dropped silently.scrollPaddingLeft matters as much as the padding: without it a snap point would land the card under the page margin instead of in line with the heading.snap-x snap-mandatory keeps a card aligned to the left edge after every gesture.md and drops below the rail on a phone, where the header would otherwise carry three controls across.Link and owns its own scroll listener, drifting -8% to 8% against a 1.18 scale, so the photographs do not move together as the rail passes.feature311
Three bordered cards, each one a whole link with a photograph drifting across its top, a quiet category line, a serif title, an excerpt and an arrow pinned to the foot of the card.
feature307
Four hairline cards, each a whole link that leads with a large serif figure and an optional unit, then a title, a line of context and an arrow that lifts on hover.
feature306
Two tall cards, each one a whole link: a photograph that drifts inside its frame above a quiet label, a serif title, an intro, a short dotted list and a closing arrow link pinned to the foot of the card.
feature309
Three numbered cards on a muted fill, each one a whole link that inverts to ink on hover, carrying a serif title, a paragraph of what happens at that step and a closing arrow link.