ai 2

Drag Item

Component 4

About

A set of styled list-row variants (handle, grip, up/down reorder, ghost placeholder, edge rail) that visually signal an item can be reordered, for you to wire up to your own drag-and-drop logic.

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

Code

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

Usage.tsx

import {
  HandleItem,
  GripItem,
  ReorderItem,
  GhostItem,
  RailItem,
} from "@/components/ui/item-drag";

export default function ItemDragDemo() {
  return (
    <div className="flex w-full max-w-md flex-col gap-2 p-6">
      <HandleItem />
      <GripItem />
      <ReorderItem />
      <GhostItem />
      <RailItem />
    </div>
  );
}

Dependencies

More by ai 2

View all
  • Ripple Buttons

    Ripple Buttons

    31
  • Styled Toggle Switches

    Styled Toggle Switches

    14
  • Styled Progress Bars

    Styled Progress Bars

    14
  • Styled Badges

    Styled Badges

    10
  • OTP Pin Input

    OTP Pin Input

    8
  • Particle Toggles

    Particle Toggles

    7
  • Input Group Glass

    Input Group Glass

    6
  • File Input

    File Input

    6