Split Pane

Static two-column split pane that stacks on mobile and sits side by side from md up, with a hairline divider. Handy for compare views and editor previews.

src/registry/ui/split-pane.tsx/r/split-pane.json

Installation#

bash
npx shadcn@latest add @minidev/split-pane

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/split-pane.json

Usage#

tsx
import { SplitPane } from "@/components/ui/split-pane"

export function Example() {
  return <SplitPane />
}

API reference#

SplitPane props
PropTypeDefault
left*React.ReactNode-
right*React.ReactNode-
classNamestring-

* required

All layout components

Learn more