Vertical Split ComparePRO

Comparison that splits horizontally instead of down the middle: a draggable divider wipes the upper photograph away to expose the lower one, with pill labels and a caption for each state.

Reveal8: Vertical Split Compare

The same comparison, split horizontally: one photograph above the divider, the other below, dragged up and down. Each state keeps its own pill label inside the frame and its own caption on the rule underneath.

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/reveal8?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

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

This installs the block to components/beste/block/reveal8.tsx plus the badge7 eyebrow it uses.

Quick start

The installed file exports reveal8Demo alongside the block: the exact props behind the preview above. Spread it to get a working comparison in one line.

tsx
import { Reveal8, reveal8Demo } from "@/components/beste/block/reveal8";

export default function Page() {
  return <Reveal8 {...reveal8Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Reveal8 } from "@/components/beste/block/reveal8";

export default function Page() {
  return (
    <Reveal8
      badge={{ label: "Draw the line" }}
      heading="Sketch above, printed below, same spread."
      description="Pull the divider down to see how much of the first drawing survived."
      startPosition={45}
      top={{
        src: "/case/sketch.jpg",
        alt: "Sketches pinned to a desk",
        label: "Sketch",
        caption: "Week three, pinned and argued over",
      }}
      bottom={{
        src: "/case/printed.jpg",
        alt: "Printed editorial spread",
        label: "Printed",
        caption: "Week eleven, off the press",
      }}
      labels={{ handleLabel: "Drag to compare" }}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string }Eyebrow label rendered as a Badge7
headingstringSection heading in the left header column
descriptionstringSupporting paragraph in the right header column
topStackImageThe image revealed above the divider
bottomStackImageThe image revealed below the divider
startPositionnumber50Where the divider starts, as a percentage from the top
labelsReveal8Labels{}Fixed strings that are not content: the handle's accessible name
classNamestringExtra classes for the outer <section>
ts
type StackImage = {
  src: string;
  alt: string;
  label: string;
  caption: string;
};

type Reveal8Labels = {
  handleLabel?: string;
};

Behavior notes

More Reveal blocks

View all Reveal
FREE

reveal1

Before/After Image Slider

Interactive image comparison component with a draggable divider supporting horizontal and vertical orientations. Perfect for showcasing transformations, photo editing results, or design improvements.

FREE

reveal2

Comparison Slider with Highlights

Split-layout image comparison with a sidebar featuring benefit highlights and icons alongside a draggable before/after slider. Perfect for demonstrating product improvements with detailed feature callouts.

PRO

reveal6

Drag Compare Slider

Before and after comparison where a pointer-driven handle clips the earlier photograph over the later one, with pill labels on both corners and a ruled row of outcome figures beneath.

PRO

reveal11

Diagonal Peel Compare

Comparison that lifts diagonally instead of wiping straight: dragging the corner handle shrinks a triangular clip on the covering photograph to expose the one underneath, with notes on what changed.

PRO

reveal12

Tile Flip Compare

Two photographs split across the same grid so each square can be flipped from before to after on click, with buttons to turn the whole frame over and a counter of how much has been revealed.

PRO

reveal7

Segmented State Compare

Two versions of the same object compared through a segmented pill control: the photographs cross-fade in place while the title, explanation and ruled note list swap beside them.

Markdown version