import React, { useState } from 'react'; import { SplitPane, Pane } from '../src'; export function BasicExample() { const [direction, setDirection] = useState<'horizontal' | 'vertical'>( 'horizontal' ); return (
A simple two-pane layout.{' '}
minSize: 100px
Drag the divider to resize.
{`
Left
Right
`}