Intent UI

Color Slider

Component 14

About

A horizontal or vertical slider for adjusting a single color channel such as hue, saturation, or brightness, built on React Aria Components.

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

Code

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

Usage.tsx

"use client";

import {
  ColorSlider,
  ColorSliderOutput,
  ColorSliderTrack,
} from "@/components/ui/color-slider";
import { ColorThumb } from "@/components/ui/color-slider-utils/color-thumb";
import { Description } from "@/components/ui/field";

export default function ColorSliderDemo() {
  return (
    <div className="flex w-full justify-center p-6">
      <ColorSlider
        channel="hue"
        defaultValue="hsl(0, 100%, 50%)"
        className="w-full max-w-xs"
      >
        <ColorSliderOutput />
        <ColorSliderTrack>
          <ColorThumb />
        </ColorSliderTrack>
        <Description>
          This color slider is using the{" "}
          <strong className="font-medium text-fg">hue</strong> channel.
        </Description>
      </ColorSlider>
    </div>
  );
}

Dependencies

More by Intent UI

View all
  • Radar Chart

    Radar Chart

    234
  • Radial Chart

    Radial Chart

    84
  • Bar Chart

    Bar Chart

    46
  • Pie Chart

    Pie Chart

    36
  • Toggle Group

    Toggle Group

    29
  • Loader

    Loader

    25
  • Progress Bar

    Progress Bar

    22
  • File Trigger 13

    File Trigger 13

    11

Explore more

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