# Before After Compare

A configurable, accessible before after compare surface for AI product workflows.

## Installation

```bash
npx shadcn@latest add https://amro-ui.vercel.app/r/before-after-compare.json
```

[Registry JSON](https://amro-ui.vercel.app/r/before-after-compare.json)

## Preview

```tsx
import { BeforeAfterCompare } from "@amro-ui/react";

export function Preview() {
  return (
    <div className="grid min-h-72 w-full place-items-center rounded-xl border bg-background p-6 sm:p-10">
      <BeforeAfterCompare />
    </div>
  );
}
```


## Source

### ui/before-after-compare.tsx

```tsx
"use client";

import "@/components/amro/amro-ui.css";

export { BeforeAfterCompare } from "@/components/amro/components/signature-flows";
export type { BeforeAfterCompareProps } from "@/components/amro/components/signature-flows";
```



## Usage

A configurable, accessible before after compare surface for AI product workflows.

### Package

```tsx
import { BeforeAfterCompare } from "@amro-ui/react";

<BeforeAfterCompare />
```

### shadcn copy

```tsx
import { BeforeAfterCompare } from "@/components/ui/before-after-compare";

<BeforeAfterCompare />
```

