Skip to content

1681-engine / react / splitModeFor

Function: splitModeFor() ​

ts
function splitModeFor(
   width, 
   touch, 
   stackBelow?
): "side" | "stack";

Defined in: src/react/placement.ts:95

Side by side, or one pane at a time: only a touch screen narrower than stackBelow stacks.

Parameters ​

ParameterTypeDefault value
widthnumberundefined
touchbooleanundefined
stackBelownumberSPLIT_STACK_BELOW

Returns ​

"side" | "stack"

Released under the MIT License.