abhishek-mallick

Iso Slider

Forms 3

About

A draggable range slider whose thumb renders as a small isometric cube that sinks into its track when pressed, with optional tick marks along the rail.

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

Code

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

Usage.tsx

"use client";

import * as React from "react";

import { IsoSlider } from "@/components/ui/iso-slider";

export default function IsoSliderDemo() {
  const [value, setValue] = React.useState([40]);

  return (
    <div className="flex w-full min-h-screen items-center justify-center bg-background p-8">
      <div className="w-full max-w-sm space-y-10">
        <div className="space-y-2">
          <p className="text-sm text-muted-foreground">Volume: {value[0]}</p>
          <IsoSlider
            value={value}
            onValueChange={setValue}
            min={0}
            max={100}
            step={1}
          />
        </div>
        <div className="space-y-2">
          <p className="text-sm text-muted-foreground">With ticks</p>
          <IsoSlider
            defaultValue={[20, 70]}
            min={0}
            max={100}
            step={10}
            ticks
          />
        </div>
      </div>
    </div>
  );
}

Dependencies

More by abhishek-mallick

View all
  • Isometric Bars Chart

    Isometric Bars Chart

    34
  • Rack

    Rack

    24
  • Isometric Cube

    Isometric Cube

    19
  • Skyline

    Skyline

    17
  • Chest

    Chest

    16
  • Stack

    Stack

    16
  • Isometric Laptop

    Isometric Laptop

    15
  • Nodes

    Nodes

    14

More in Forms

View all
  • Premium Auth

    Premium Auth

    593
  • Contact Form

    Contact Form

    28
  • Form

    Form

    4
  • Login 1

    Login 1

    70
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form [react-aria-components]

    Form [react-aria-components]

    19