kanchanasw

Sketch Slider

Component

About

A hand-drawn, rough.js-styled range slider with a sketchy track and thumb, built on Radix UI Slider for accessible drag/keyboard interaction.

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

Code

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

Usage.tsx

"use client";

import { Slider } from "@/components/ui/slider";

export default function SliderDemo() {
  return (
    <div className="flex min-h-[320px] w-full flex-col items-center justify-center gap-10 bg-background p-10 text-foreground">
      <div className="flex flex-col items-center gap-3">
        <span className="text-sm font-medium">Volume</span>
        <Slider
          seed={42}
          defaultValue={[40]}
          min={0}
          max={100}
          step={1}
          aria-label="Volume"
          style={{ width: 280 }}
        />
      </div>
    </div>
  );
}

Dependencies

More by kanchanasw

View all
  • Sketch Tabs

    Sketch Tabs

    146
  • Hand-Drawn Checkbox

    Hand-Drawn Checkbox

    76
  • Sketch Textarea

    Sketch Textarea

    68
  • Sketch Hover Card

    Sketch Hover Card

    53
  • Sketch Button

    Sketch Button

    28
  • Pagination

    Pagination

    12
  • Radial Menu

    Radial Menu

    7
  • Sketch Prompt Input

    Sketch Prompt Input

    3