nikolas-sapa

Split Pane Weighted

Component

About

A resizable two-pane split view whose divider carries physical weight — it trails a fast drag like a counterweighted sash and coasts into the nearest snap point on release, or stays put on a slow release far from a detent.

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

Code

How Split Pane Weighted is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import SashWeight from "@/components/ui/split-pane-weighted";

export default function SplitPaneWeightedDemo() {
  return (
    <div className="h-screen w-full">
      <SashWeight
        start={
          <div className="flex h-full items-center justify-center bg-muted/30 p-4 text-sm text-muted-foreground">
            Left pane
          </div>
        }
        end={
          <div className="flex h-full items-center justify-center bg-muted/10 p-4 text-sm text-muted-foreground">
            Right pane
          </div>
        }
      />
    </div>
  );
}

More by nikolas-sapa

View all
  • Dye Whorl

    Dye Whorl

    139
  • Countdown Vapor Digits

    Countdown Vapor Digits

    122
  • Hero Burin Hatch

    Hero Burin Hatch

    62
  • Background ASCII Wake

    Background ASCII Wake

    55
  • Hero Text Ring Funnel

    Hero Text Ring Funnel

    48
  • Toast Gravity Stack

    Toast Gravity Stack

    46
  • Hero ASCII Schlieren

    Hero ASCII Schlieren

    45
  • Hero ASCII Reaction Front

    Hero ASCII Reaction Front

    41