Explicitly set the request layout (#257)

This commit is contained in:
Gregory Schier
2025-09-25 07:23:52 -07:00
committed by GitHub
parent 73ad86c6b9
commit df15543c80
8 changed files with 41 additions and 16 deletions

View File

@@ -8,6 +8,8 @@ import { useContainerSize } from '../../hooks/useContainerQuery';
import { clamp } from '../../lib/clamp';
import { ResizeHandle } from '../ResizeHandle';
export type SplitLayoutLayout = 'responsive' | 'horizontal' | 'vertical';
export interface SlotProps {
orientation: 'horizontal' | 'vertical';
style: CSSProperties;
@@ -22,7 +24,7 @@ interface Props {
defaultRatio?: number;
minHeightPx?: number;
minWidthPx?: number;
layout?: 'responsive' | 'vertical' | 'horizontal';
layout?: SplitLayoutLayout;
}
const baseProperties = { minWidth: 0 };