
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
@remy/react-splitter-layout
Advanced tools
A simple split layout for React and modern browsers.
React-splitter-layout depends on React. See package.json for more details.
$ npm install --save react-splitter-layout
To run tests, execute test command with npm.
$ npm test
To run coverage tests, execute coverage script with npm.
$ npm run coverage
Add react-splitter-layout dependency to your code.
$ npm install --save react-splitter-layout
Include the library into your code and use it.
import React from 'react';
import SplitterLayout from 'react-splitter-layout';
class YourComponent extends React.Component {
render() {
return (
<SplitterLayout>
<div>Pane 1</div>
<div>Pane 2</div>
</SplitterLayout>
);
}
}
export default YourComponent;
Write two parts of the layout as direct children of your SplitterLayout element.
SplitterLayout renders the first 2 direct children only if it has more than 2 direct children.
SplitterLayout does not render splitter when it has only 1 direct children,
and the only direct children occupies all available space.
The SplitterLayout component supports the following props.
customClassName: React.PropTypes.string
Custom CSS class name applied to the layout div. You can use this to customize layout style.
Refers to the original stylesheet to see what you can customize.
vertical: React.PropTypes.bool
Determine whether the layout should be a horizontal split or a vertical split. The default value is false.
percentage: React.PropTypes.bool
Determine whether the width of each pane should be calculated in percentage or by pixels.
The default value is false, which means width is calculated in pixels.
primaryIndex: React.PropTypes.number
Index of the primary pane. Since SplitterLayout supports at most 2 children, only 0 or 1 is allowed.
The default value is 0.
A primary pane is used to show users primary content, while a secondary pane is the other pane.
When window size changes and percentage is set to false,
primary pane's size is flexible and secondary pane's size is kept unchanged.
However, when the window size is not enough for showing both minimal primary pane and minimal secondary pane,
the primary pane's size is served first.
primaryMinSize: React.PropTypes.number
Minimal size of primary pane. The default value is 0.
When percentage is set to false, this value is pixel size (25 means 25px).
When percentage is set to true, this value is percentage (25 means 25%).
secondaryMinSize: React.PropTypes.number
Minimal size of secondary pane.
secondaryInitialSize: React.PropTypes.number
Initial size of secondary pane when page loads.
If this prop is not defined, SplitterLayout tries to split the layout with equal sizes.
(Note: equal size may not apply when there are nested layouts.)
FAQs
A simple split layout for React and modern browsers
The npm package @remy/react-splitter-layout receives a total of 4 weekly downloads. As such, @remy/react-splitter-layout popularity was classified as not popular.
We found that @remy/react-splitter-layout demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.