sidiora-labs

Bubble Slider

Forms

About

A draggable range slider that pops a value bubble above the thumb while dragging, leaning and squashing with drag velocity.

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

Code

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

Usage.tsx

import * as React from "react";
import { BubbleSlider } from "@/components/ui/range-slider-bubble";

function RangeSliderBubblePreview() {
  const [value, setValue] = React.useState(28);

  return (
    <div className="flex w-full max-w-sm flex-col gap-1">
      <span className="text-sm text-muted-foreground">
        Drag fast and the bubble leans
      </span>
      <BubbleSlider value={value} onValueChange={setValue} aria-label="Value" />
    </div>
  );
}

export default RangeSliderBubblePreview;

Dependencies

More by sidiora-labs

View all
  • Preview Rail

    Preview Rail

    5
  • Wave Slider

    Wave Slider

    5
  • Icon Accordion

    Icon Accordion

    3
  • Motion Breadcrumb

    Motion Breadcrumb

    2
  • Expandable Tabs

    Expandable Tabs

    2
  • Morph Confirm

    Morph Confirm

    2
  • Not Found

    Not Found

    1
  • Swap

    Swap

    1

More in Forms

View all
  • Premium Auth

    Premium Auth

    524
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    73
  • Form

    Form

    16
  • Login 1

    Login 1

    53
  • Book A Demo 3

    Book A Demo 3

    89
  • Hand-Drawn Checkbox

    Hand-Drawn Checkbox

    48
  • Login Card

    Login Card

    6