Staaarter

Sticky Comparison Highlight

Three-tier pricing comparison where the recommended tier sits scaled up with a stronger border and shadow plus a ribbon-style "Recommended" badge at its top edge, while the other two tiers sit slightly smaller and muted beside it.

By Staaarter Team
Pricing
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, badge dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/sticky-comparison-highlight.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/pricing/pricing17.tsx instead.

Usage

The file also exports pricing17Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Pricing17, pricing17Demo } from "@/components/blocks/pricing/pricing17";

export default function Page() {
  return <Pricing17 {...pricing17Demo} />;
}

Props

PropTypeDefaultDescription
headingReactNodenoneMain section headline.
descriptionstringundefinedSupporting subtext below the heading.
recommendedBadgeLabelstring"Recommended"Text on the ribbon badge for the recommended tier.
tiersPricing17Tier[]noneThe pricing cards to render (3 recommended, one with recommended: true).
classNamestringnoneExtra classes for the outer section element.

Types

type Pricing17Tier = {
  name: string;
  description?: string;
  price: string;
  period?: string;
  features: string[];
  cta: { label: string; href?: string };
  recommended?: boolean;
};

Behavior notes

  • This block is fully static presentation with no interactivity; the "lifted" recommended card is pure CSS (scale, shadow, z-index), not scroll- or hover-triggered.
  • Exactly which tier is emphasized is driven entirely by the `recommended: true` flag on its tier data; the layout does not assume it is always the middle item.
  • All CTA buttons are inert placeholders (href defaults to "#" in the demo) with no real navigation or checkout wired up.