Page sections / Feature sections

Checklist Feature Columns

Four-column grid divided by dashed vertical hairlines. Each column has a duotone blue-purple illustration, a small purple tick marker next to the title, and a check-icon bullet list.

Rebuilt from stripe.com/pricing in the Iridescent Ledger style.

npx shadcn@latest add https://yoink-app.fly.dev/r/iridescent-ledger/blocks/feature-checklist-grid.json

Looks exactly like stripe.com: brings its fonts and colours, namespaced so your own theme stays untouched.

Usage

Pass `heading` and `columns` (array of {title, items, icon 0-7}); renders standalone with defaults. Icons tilt on column hover.

components/feature-checklist-grid.tsx
"use client";

import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react";
type Col = { title: string; items: string[]; icon: number };

type Props = {
  heading?: string;
  columns?: Col[];
};

const defaults: Col[] = [
  { title: "Worldwide reach", icon: 0, items: ["120 regions", "80+ currencies", "60+ payment types", "One API"] },
  { title: "Smart risk screening", icon: 1, items: ["Adaptive scoring models", "Learns new threat patterns", "Zero setup needed", "Risk reporting"] },
  { title: "Tools to speed up your purchase flow", icon: 2, items: ["Drop-in UI blocks", "Ready payment forms", "One-tap checkout", "Low-code billing"] },
  { title: "Revenue growth levers", icon: 3, items: ["Automatic retry logic", "Card detail refresh", "Shopper verification"] },
  { title: "Marketplace payments for platforms", icon: 4, items: ["Quick merchant signup", "Hosted dashboards", "Embeddable widgets", "Fraud controls"] },
  { title: "Fast, dependable transfers to your bank", icon: 5, items: ["Flexible schedules", "Matched settlement", "Clear fee reports"] },
  { title: "Help by phone, chat and email", icon: 6, items: ["Round-the-clock help", "Expert-led guidance", "Community forum access"] },
  { title: "Safety, uptime and compliance", icon: 7, items: ["99.99% historical availability", "Audited controls", "Licensed in many regions"] },
];

function Icon({ n }: { n: number }) {
  const shapes = [
    <rect key="a" x="4" y="10" width="30" height="20" rx="4" className="fill-accent" />,
    <circle key="b" cx="22" cy="20" r="13" className="fill-accent-soft" />,
    <path key="c" d="M4 30 L16 10 L26 22 L36 6 V34 H4Z" className="fill-accent" />,
    <path key="d" d="M6 6 H34 V22 C34 30 20 36 20 36 C20 36 6 30 6 22Z" className="fill-accent" />,
  ];
  return (
    <svg viewBox="0 0 40 40" width="40" height="40" aria-hidden="true" className="transition-transform duration-smooth ease-smooth group-hover:-rotate-6 group-hover:scale-105">
      <rect x="2" y="2" width="22" height="16" rx="3" className="fill-accent-wash" />
      {shapes[n % 4]}
      <rect x="22" y="22" width="14" height="14" rx="3" className="fill-ink-deep" opacity="0.85" />
    </svg>
  );
}

function Check() {
  return (
    <span className="mt-1 flex h-4 w-4 shrink-0 items-center justify-center rounded-pill bg-accent-wash text-accent">
      <svg viewBox="0 0 12 12" width="10" height="10" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M2.5 6.5l2.2 2.2L9.5 3.8" /></svg>
    </span>
  );
}

export default function ChecklistFeatureColumns({ heading = "Everything included from day one:", columns = defaults }: Props) {
  return (
    <section className="bg-canvas px-4 py-16 font-sans text-ink">
      <div className="mx-auto max-w-[1080px]">
        <Reveal>
          <h2 className="text-h2 text-ink-deep px-4">{heading}</h2>
        </Reveal>
        <Stagger step={70} className="mt-16 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4">
          {columns.map((c, i) => (
            <div key={i} className="group border-l border-dashed border-hairline px-4 pb-12">
              <Icon n={c.icon} />
              <div className="mt-6 flex items-start gap-2 -ml-4">
                <span className="mt-1.5 h-3 w-px bg-accent" aria-hidden="true" />
                <h3 className="pl-3 text-ui font-medium text-ink-deep">{c.title}</h3>
              </div>
              <ul className="mt-4 space-y-2">
                {c.items.map((t) => (
                  <li key={t} className="flex items-start gap-2 text-ui text-ink-muted">
                    <Check />
                    <span>{t}</span>
                  </li>
                ))}
              </ul>
            </div>
          ))}
        </Stagger>
      </div>
    </section>
  );
}

// ---- Yoink motion (inlined, no dependencies): Reveal, Stagger ----

const YK_EASE = "cubic-bezier(0.16, 1, 0.3, 1)";

const useYkLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;

function ykReducedMotion(): boolean {
  return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
}

// "idle": untouched (visible) · "hidden": waiting below the fold · "shown": play the entrance.
// Content is only hidden once we know we can show it again (IntersectionObserver exists, motion allowed,
// and there is a box to watch), and a safety net reveals anything on screen that is still hidden.
type YkRevealState = "idle" | "hidden" | "shown";

function useYkReveal(ref: RefObject<Element | null>, once = true): YkRevealState {
  const [state, setState] = useState<YkRevealState>("idle");
  useYkLayoutEffect(() => {
    const el = ref.current;
    if (!el || ykReducedMotion() || typeof IntersectionObserver === "undefined") return;
    // watch the element's own box, or its children when it has none (display: contents)
    const boxes = () => (getComputedStyle(el).display === "contents" ? Array.from(el.children) : [el]);
    const onScreen = (t: Element) => {
      const r = t.getBoundingClientRect();
      return (r.width > 0 || r.height > 0) && r.bottom > 0 && r.right > 0 && r.top < window.innerHeight && r.left < window.innerWidth;
    };
    if (!boxes().some((t) => t.getBoundingClientRect().width > 0 || t.getBoundingClientRect().height > 0)) return; // e.g. hidden at mount: leave it visible
    let shown = false;
    const show = (v: boolean) => {
      if (v !== shown) (shown = v), setState(v ? "shown" : "hidden");
    };
    setState("hidden");
    const inView = new Set<Element>();
    const io = new IntersectionObserver((entries) => {
      for (const e of entries) {
        if (e.isIntersecting) inView.add(e.target);
        else inView.delete(e.target);
      }
      if (inView.size) {
        show(true);
        if (once) io.disconnect();
      } else if (!once) show(false);
    });
    const watched = new Set<Element>();
    const watch = () => boxes().forEach((t) => !watched.has(t) && (watched.add(t), io.observe(t)));
    watch();
    // safety net: styles that land after mount (display: contents) get watched too, and nothing
    // stays hidden for more than a moment while it is actually on screen
    const start = Date.now();
    const net = setInterval(() => {
      if (shown) return once && clearInterval(net);
      watch();
      if (Date.now() - start > 2400 && boxes().some(onScreen)) show(true);
    }, 600);
    return () => {
      io.disconnect();
      clearInterval(net);
    };
  }, [once]);
  return state;
}

type YkRevealFrom = "up" | "down" | "left" | "right" | "scale" | "blur" | "none";

/** Fades content in as it scrolls into view. */
function Reveal({
  children,
  from = "up",
  delay = 0,
  duration = 700,
  distance = 24,
  once = true,
  as = "div",
  className,
  style,
}: {
  children?: ReactNode;
  from?: YkRevealFrom;
  delay?: number;
  duration?: number;
  distance?: number;
  once?: boolean;
  as?: ElementType;
  className?: string;
  style?: CSSProperties;
}) {
  const Tag = as;
  const ref = useRef<HTMLElement>(null);
  const state = useYkReveal(ref, once);
  const hidden = state === "hidden";
  const offset = {
    up: `translate3d(0, ${distance}px, 0)`,
    down: `translate3d(0, ${-distance}px, 0)`,
    left: `translate3d(${-distance}px, 0, 0)`,
    right: `translate3d(${distance}px, 0, 0)`,
    scale: "scale(0.94)",
    blur: `translate3d(0, ${distance / 2}px, 0)`,
    none: "none",
  }[from];
  const t = `${duration}ms ${YK_EASE} ${delay}ms`;
  return (
    <Tag
      ref={ref}
      className={className}
      style={{
        ...style,
        ...(hidden && { opacity: 0, transform: offset, filter: from === "blur" ? "blur(12px)" : undefined }),
        ...(state === "shown" && { transition: `opacity ${t}, transform ${t}, filter ${t}` }),
      }}
    >
      {children}
    </Tag>
  );
}

/** Reveals each direct child one after another when the group scrolls into view. */
function Stagger({
  children,
  step = 90,
  from = "up",
  distance = 20,
  duration = 650,
  delay = 0,
  once = true,
  as = "div",
  className,
  style,
}: {
  children?: ReactNode;
  step?: number;
  from?: "up" | "down" | "left" | "right" | "scale" | "fade";
  distance?: number;
  duration?: number;
  delay?: number;
  once?: boolean;
  as?: ElementType;
  className?: string;
  style?: CSSProperties;
}) {
  const Tag = as;
  const ref = useRef<HTMLElement>(null);
  const state = useYkReveal(ref, once);
  useYkLayoutEffect(() => {
    const items = Array.from(ref.current?.children ?? []) as HTMLElement[];
    if (state === "idle") return;
    const offset = {
      up: `translate3d(0, ${distance}px, 0)`,
      down: `translate3d(0, ${-distance}px, 0)`,
      left: `translate3d(${-distance}px, 0, 0)`,
      right: `translate3d(${distance}px, 0, 0)`,
      scale: "scale(0.92)",
      fade: "none",
    }[from];
    if (state === "hidden") {
      for (const el of items) Object.assign(el.style, { transition: "none", opacity: "0", transform: offset });
      return;
    }
    items.forEach((el, i) => {
      const t = `${duration}ms ${YK_EASE} ${delay + i * step}ms`;
      Object.assign(el.style, { transition: `opacity ${t}, transform ${t}`, opacity: "", transform: "" });
    });
    // hand the children their own transitions back once everything has landed
    const done = setTimeout(() => items.forEach((el) => (el.style.transition = "")), delay + items.length * step + duration + 50);
    return () => clearTimeout(done);
  }, [state]);
  return (
    <Tag ref={ref} className={className} style={style}>
      {children}
    </Tag>
  );
}

Quality checks

Automated, in a real browser · 5d ago
—

More from Iridescent Ledger

The whole style →

Iridescent Ribbon Hero

Heroes

Dated Article Row

Blog & articles

Saturated Highlight Card Strip

Carousels

Frosted Hairline Header

Headers & nav bars

Sticky Pill Sub-Navigation

Tab bars

Mockup Bento Grid

Feature sections