animate(strength, 0, { duration: reduce ? 0 : 0.4 })}
className={cn("relative isolate border border-[hsl(var(--border))]", className)}
style={{ borderRadius, background: backgroundColor }}
>
{/* Soft halo outside the border, padded so the shadow is not clipped by the mask. */}
{/* Gradient ring on the border itself. */}
{/* Inner wash following the cursor. */}
{children}
);
}
```
---
# Comparison Slider
> Two layers stacked, with a divider the user drags to compare them.
Install: `npx @modus-ui/cli add comparison-slider`
A buttery smooth, accessible image/layer comparison slider. It supports both horizontal and vertical orientations and is fully keyboard navigable.
## Installation
### CLI
```bash
npx @modus-ui/cli add comparison-slider
```
### Manual
1. Copy the code from the component tab.
2. Create a file at `components/ui/comparison-slider.tsx`.
3. Paste the code.
## Usage
```tsx
import { ComparisonSlider } from "@/components/ui/comparison-slider";
export default function Example() {
return (