Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@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 78,758 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 0 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.