sltowl

Time Window Slider

Component 20

About

A dual-handle range slider for picking a start and end hour (e.g. business or availability hours) with a draggable filled track, hour tick marks, and a live "09:00 – 18:00" readout. Ported to React from the original HTML/CSS/JS "Matte" slider by SLtowl (sl-ui-library), MIT licensed.

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

Code

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

Usage.tsx

import HoursSlider from "@/components/ui/matte-hours-slider";

export default function HoursSliderDemo() {
  return (
    <div className="flex min-h-[420px] w-full items-center justify-center bg-[#f5f4f2] p-10">
      <HoursSlider />
    </div>
  );
}

More by sltowl

View all
  • Playback Scrubber

    Playback Scrubber

    43
  • Matte Alert Feedback

    Matte Alert Feedback

    41
  • Notification Stack

    Notification Stack

    30
  • Commands Menu

    Commands Menu

    14
  • Matte Meter Slider

    Matte Meter Slider

    14
  • Matte Opacity Slider

    Matte Opacity Slider

    12
  • Undo Feedback

    Undo Feedback

    8
  • Matte Sound Toggle

    Matte Sound Toggle

    5