panelui

XY Pad

Component

About

Two numbers set with one drag: a point moved across a field.

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

Code

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

Usage.tsx

'use client';

import { XYPad } from '@/components/ui/panel-xy-pad';
export default function XYPadOverview() {
  return (
    <XYPad label="Framing" defaultValue={{ x: 0.32, y: -0.18 }} className="max-w-sm">
      <XYPad.Value />
    </XYPad>
  );
}

Dependencies

More by panelui

View all
  • Spinner

    Spinner

    8
  • Flow

    Flow

    4
  • Hex Chart

    Hex Chart

    2
  • Treemap Chart

    Treemap Chart

    1
  • Soundwave

    Soundwave

    1
  • Share

    Share

    1
  • Scatter Chart

    Scatter Chart

    1
  • Pyramid Chart

    Pyramid Chart

    1