Edu Calvo

Scrubber

Component 2

About

A design-tool style scrubber slider with an animated capsule thumb, tick marks, inline label and value display, supporting pointer drag and keyboard control.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Scrubber to your project and fits it to your theme.

Code

How Scrubber is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Scrubber from "@/components/ui/scrubber";
import { useState } from "react";

export default function ScrubberDemo() {
  const [opacity, setOpacity] = useState(0.5);

  return (
    <div className="flex min-h-[240px] w-full items-center justify-center bg-background p-8">
      <div className="w-full max-w-xs">
        <Scrubber
          label="Opacity"
          value={opacity}
          onValueChange={setOpacity}
          min={0}
          max={1}
          step={0.01}
        />
      </div>
    </div>
  );
}

Dependencies

More by Edu Calvo

View all
  • Scrollable Card Stack

    Scrollable Card Stack

    235
  • AI Task List

    AI Task List

    160
  • Siri Orb

    Siri Orb

    160
  • Cursor Follow

    Cursor Follow

    154
  • Pixel Flow Field

    Pixel Flow Field

    143
  • Agent Avatar

    Agent Avatar

    130
  • Gravity Stars

    Gravity Stars

    112
  • Coverflow Carousel

    Coverflow Carousel

    95

Explore more

Part of SmoothUI — browse the full library on 21st.dev.