
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@zendeskgarden/container-splitter
Advanced tools
Containers relating to Splitter in the Garden Design System
This package includes containers relating to Splitter in the Garden Design System.
npm install @zendeskgarden/container-splitter
This container implements the window splitter design pattern and can be used to build a splitter component. Check out storybook for live examples.
The useSplitter hook manages positioning and required
accessibility attributes for the window splitting separator.
import {
useSplitter,
SplitterType,
SplitterOrientation,
SplitterPosition
} from '@zendeskgarden/container-splitter';
const Splitter = () => {
const { getSeparatorProps, getPrimaryPaneProps, valueNow } = useSplitter({
label: 'primary-pane',
type: SplitterType.VARIABLE,
orientation: SplitterOrientation.VERTICAL,
min: 50,
max: 100,
position: SplitterPosition.TRAILS,
environment: window
});
const separatorProps = getSeparatorProps();
const primaryPaneProps = getPrimaryPaneProps();
return (
<div style={{ display: 'flex' }}>
<div {...primaryPaneProps} style={{ flex: `0 0 ${valueNow}px` }}>
<p>Primary Pane</p>
</div>
<div style={{ flex: '0 0 5px' }} {...separatorProps} />
<div style={{ flex: '1 1 auto' }}>
<p>Secondary Pane</p>
</div>
</div>
);
};
SplitterContainer is a render-prop wrapper for the useSplitter hook.
import {
SplitterContainer,
SplitterType,
SplitterOrientation,
SplitterPosition
} from '@zendeskgarden/container-splitter';
<SplitterContainer
label="primary-pane"
type={SplitterType.VARIABLE}
orientation={SplitterOrientation.VERTICAL}
min={50}
max={100}
position={SplitterPosition.TRAILS}
environment={window}
>
{({ getSeparatorProps, getPrimaryPaneProps, valueNow }) => {
const separatorProps = getSeparatorProps();
const primaryPaneProps = getPrimaryPaneProps();
return (
<div id="container" style={{ display: 'flex' }}>
<div {...primaryPaneProps} style={{ flex: `0 0 ${valueNow}px` }}>
<p>Primary Pane</p>
</div>
<div style={{ flex: '0 0 5px' }} {...separatorProps} />
<div style={{ flex: '1 1 auto' }}>
<p>Secondary Pane</p>
</div>
</div>
);
}}
</SplitterContainer>;
FAQs
Containers relating to Splitter in the Garden Design System
The npm package @zendeskgarden/container-splitter receives a total of 31,738 weekly downloads. As such, @zendeskgarden/container-splitter popularity was classified as popular.
We found that @zendeskgarden/container-splitter demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.