Skip to contentFacade Pro is $149 once during launch, then $199. Lifetime updates.
Facade
Browse the library

Components / Media

Before / after slider

Pro

Draggable, keyboard accessible comparison slider for renovations, staging and remodel photos.

Installation

$npx shadcn@latest add @facade/before-after-slider

Pro items install from the private @facade registry with your license key. Set it up once.

Usage

import { BeforeAfterSlider } from "@/components/facade/before-after-slider";

export default function Page() {
  return <BeforeAfterSlider />;
}

Props

BeforeAfterSliderProps is exported, so you can extend or wrap it. Every prop has a default; <BeforeAfterSlider /> renders the example above.

Props of BeforeAfterSlider
PropTypeDescription
beforeSrcstringImage URL for the "before" state. Falls back to an illustrated dated room.
afterSrcstringImage URL for the "after" state. Falls back to an illustrated renovated room.
beforeAltstring
afterAltstring
beforeLabelstring
afterLabelstring
defaultValuenumberInitial handle position, 0 to 100.
stepnumberKeyboard step in percent. Shift multiplies by 5.
onValueChange(value: number) => void
labelstringAccessible name for the slider.
classNamestring

Ask your agent

With the Facade MCP server connected, this prompt is enough:

Add the Facade before / after slider to this page and adapt the copy to our business.