Linked Card Rail

Everything we offer

Pushtherail.Everycardisapage.

About this block

Linked Card RailPRO

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.

Feature301: Linked Card Rail

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.

Upgrade Now

Installation

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

bash
npx shadcn add "https://ui.beste.co/r/feature301?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
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.

Quick start

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.

tsx
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:

tsx
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" },
        },
      ]}
    />
  );
}

Props

PropTypeDefaultDescription
eyebrowstringSmall-caps line above the heading
headingstringSection heading, rendered as an h2 through Text1
buttonActionButtonPill action beside the arrows, and under the rail on a phone
cardsCard[][]Linked cards along the rail
labelsLabels{}Screen-reader wording for the two arrows
classNamestringExtra classes for the outer <section>
ts
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";
};

Behavior notes

  • The rail measures the header's left edge on mount and on resize, then applies it as 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.
  • That inset is measured rather than written as an arbitrary 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.
  • The arrows move the rail seventy percent of its own width, so a press advances roughly a screen whatever the viewport.
  • Scrolling is smooth by default and instant under reduced motion, since the arrows are the only way to travel for anyone who cannot swipe.
  • The scrollbar is hidden in both engines, and snap-x snap-mandatory keeps a card aligned to the left edge after every gesture.
  • The pill sits beside the arrows from md and drops below the rail on a phone, where the header would otherwise carry three controls across.
  • Each card is one 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.

More Feature blocks

View all Feature
PRO

feature311

Linked Photo Cards

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.

PRO

feature307

Linked Figure Cards

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.

PRO

feature306

Two Linked Doors

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.

PRO

feature309

Linked Step Cards

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.

PRO

feature303

Sticky Header Linked Cards

The heading, intro and pill stay pinned in a sticky column while linked photo cards scroll past in pairs beside them, each photograph drifting inside its frame under a serif title, a meta line and an arrow that lifts on hover.

PRO

feature300

Linked Card Grid

Six hairline cards in a three-column grid, each one a whole link carrying a ringed icon, a serif title, a line of context and an arrow that lifts on hover, under a serif heading that settles in word by word beside a sliding-marker pill.