# Beste UI

> Beautiful, accessible blocks, pieces and components for shadcn/ui and Tailwind CSS, built for React and Next.js. Install one with the shadcn CLI and the code is yours to edit: no runtime dependency, nothing to upgrade.

Markdown rendition of https://ui.beste.co/block/reveal8. Every page on the site has one: add `.md` to any address, or send `Accept: text/markdown`.

Last updated: 2026-07-29

Whole catalog for LLMs: https://ui.beste.co/llms.txt. Registry index: https://ui.beste.co/r/registry.json

---
1. /
2. [Blocks](/blocks)
3. /
4. [Reveal](/blocks/reveal)
5. /
6. Vertical Split Compare

# Vertical Split Compare[PRO](/pricing)

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.

ViewCodeDocs

Base UI

![](https://oud.pics/sm/l/npm.svg)`npx shadcn add https://ui.beste.co/r-base/reveal8`

## 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 NowUpgrade Now](/pricing)

### Installation

Swap `YOUR_EMAIL` and `YOUR_KEY` for the email and license key on your account. Find your license key on your [account page](/account).

**Radix flavor**

bashCopy

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

**Base UI flavor**

bashCopy

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

tsxCopy

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

tsxCopy

```
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

| Prop          | Type              | Default | Description                                                      |
| ------------- | ----------------- | ------- | ---------------------------------------------------------------- |
| badge         | { label: string } | –       | Eyebrow label rendered as a Badge7                               |
| heading       | string            | –       | Section heading in the left header column                        |
| description   | string            | –       | Supporting paragraph in the right header column                  |
| top           | StackImage        | –       | The image revealed above the divider                             |
| bottom        | StackImage        | –       | The image revealed below the divider                             |
| startPosition | number            | 50      | Where the divider starts, as a percentage from the top           |
| labels        | Reveal8Labels     | {}      | Fixed strings that are not content: the handle's accessible name |
| className     | string            | –       | Extra classes for the outer <section>                            |

tsCopy

```
type StackImage = {
  src: string;
  alt: string;
  label: string;
  caption: string;
};

type Reveal8Labels = {
  handleLabel?: string;
};
```

### Behavior notes

* The reveal is a `clip-path: inset()` on the top layer rather than a height change, so neither photograph is ever squashed: both stay `object-cover` at full frame size while only the visible band changes.
* Dragging works anywhere in the frame, not only on the handle: `onPointerDown` captures the pointer on the container, so a fast drag that leaves the box still tracks until release.
* `touch-none` is set on the frame, which is what stops a vertical touch drag from scrolling the page instead of moving the divider.
* The handle is a `role="slider"` button with `aria-orientation="vertical"` and a live `aria-valuenow`; up and down arrows nudge it in four percent steps, so the comparison is operable without a pointer.
* Pill labels sit in opposite corners, top left and bottom left, so each one stays inside its own half at every divider position.
* Captions live outside the picture on a shared `border-t` rule, one per side, with the second `md:justify-self-end` so the pair reads as a caption line rather than a paragraph.
* The frame changes ratio rather than height (`aspect-[4/3]` becoming `md:aspect-[16/9]`), so a phone gets a taller box to drag through and a desktop gets a wide plate.

## More Reveal blocks

[View all Reveal](/blocks/reveal)

[](/block/reveal1)

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.

[](/block/reveal2)

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.

[](/block/reveal6)

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.

[](/block/reveal11)

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.

[](/block/reveal12)

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.

[](/block/reveal7)

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.

## Ship the interface, keep the code.

New blocks, pieces and components every week. Install one with a command and it is yours to edit. No runtime dependency, no upgrade path to fight.

[Browse the libraryBrowse the library](/blocks)[See pricingSee pricing](/pricing)

### Library

* [Blocks](/blocks)
* [Pages](/pages)
* [Pieces](/pieces)
* [Components](/components)
* [Search](/search)

### Learn

* [Docs](/docs)
* [AI & MCP](/docs/mcp)
* [Blog](/blog)
* [Free tools](/tools)
* [What's new?](/changelog)
* [Website Builder](https://beste.co)

### More

* [Pricing](/pricing)
* [Referrals](/referrals)
* [License](/license)
* [GitHub](https://github.com/beste-co/beste-ui)

### Shadcn Blocks

* [Shadcn Hero Blocks](/blocks/hero)
* [Shadcn Feature Blocks](/blocks/feature)
* [Shadcn Pricing Blocks](/blocks/pricing)
* [Shadcn CTA Blocks](/blocks/cta)
* [Shadcn FAQ Blocks](/blocks/faq)
* [Shadcn About Blocks](/blocks/about)
* [Shadcn Stats Blocks](/blocks/stats)
* [Shadcn Footer Blocks](/blocks/footer)
* [Shadcn Navigation Blocks](/blocks/navigation)
* [Shadcn Auth Blocks](/blocks/auth)
* [Shadcn Ecommerce Blocks](/blocks/ecommerce)
* [Shadcn Portfolio Blocks](/blocks/portfolio)
* [Shadcn Showcase Blocks](/blocks/showcase)
* [Shadcn Careers Blocks](/blocks/careers)
* [Shadcn Onboarding Blocks](/blocks/onboarding)
* [Shadcn Coming Soon Blocks](/blocks/coming-soon)
* [Shadcn Post Blocks](/blocks/post)
* [Shadcn Legal Blocks](/blocks/legal)
* [Shadcn Workflow Blocks](/blocks/workflow)
* [Shadcn News Blocks](/blocks/news)

© 2026, [Beste](https://beste.co). All rights reserved.