
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
svelte-splitpanes
Advanced tools
A full featured resizable pane layout splitter, ported from vue-splitpanes
Use dynamic and predictable view panels to layout an application.

This library is a port from the excellent vue-splitpanes, if you are using this library for business or leasure, please consider backing the original author!
While you are at it, you may also back the developer who ported the code to Svelte. :blush:
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|---|---|---|---|---|---|
| Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 10+ ✔ |
$ npm i svelte-splitpanes
<script>
import { Pane, Splitpanes } from 'svelte-splitpanes';
</script>
<Splitpanes class="default-theme" style="height: 400px">
<Pane minSize="20">1<br /><em class="specs">I have a min width of 20%</em></Pane>
<Pane>
<Splitpanes class="default-theme" horizontal="{true}">
<Pane minSize="15">2<br /><em class="specs">I have a min height of 15%</em></Pane>
<Pane>3</Pane>
<Pane>4</Pane>
</Splitpanes>
</Pane>
<Pane>5</Pane>
</Splitpanes>
Here is the list of properties that apply to
| Parameter name | Default | Comments |
|---|---|---|
| horizontal | false (Vertical by default) | The orientation of the split panes. |
| pushOtherPanes | true | Whether a splitter should push the next splitter when dragging. |
| dblClickSplitter | true | Double click on splitter to maximize the next pane |
| rtl | false | Supports Right to left direction |
| firstSplitter | false | Displays the first splitter when set to true. This allows maximizing the first pane on splitter double click |
| id | undefined | Provide an optional id attribute to the component for styling/other reasons |
| theme | 'default-theme' | Used to styles the splitters using a different css class |
| class | undefined | Any additional css classes to be added to the component |
Properties that apply to
| Parameter name | Default | Comments |
|---|---|---|
| minSize | 0 | minimum pane size in % |
| maxSize | 100 | maximum pane size in % |
| size | undefined | pane size in % |
| class | undefined | Any additional css classes to be added to the component |
The component can be further styled after the props have been defined by overriding the default css styling. The best way to do this is to use a class differenciator or the id="" prop and then scope your global css with this class/id.
/* The followinf classes can be used to style the splitter, see demos*/
.splitpanes {
background-color: #f8f8f8;
}
.splitpanes__splitter {
background-color: #ccc;
position: relative;
}
.splitpanes__splitter:before {
content: '';
position: absolute;
left: 0;
top: 0;
transition: opacity 0.4s;
background-color: rgba(255, 0, 0, 0.3);
opacity: 0;
z-index: 1;
}
.splitpanes__splitter:hover:before {
opacity: 1;
}
.splitpanes--vertical > .splitpanes__splitter:before {
left: -30px;
right: -30px;
height: 100%;
}
.splitpanes--horizontal > .splitpanes__splitter:before {
top: -30px;
bottom: -30px;
width: 100%;
}
If you have any idea, feel free to open an issue to discuss an idea or new feature, yuo may also fork Splitpanes and submit your changes back.
# generate the package in /package
npm run package
# publish it (requires to be logged into npm from the cli)
cd package
npm publish --access public
# generate new site to /docs
$ npm run build-ghpages
# then commit and push changes to git, github will auto publish
FAQs
A full featured resizable pane layout splitter, ported from vue-splitpanes and enhanced
The npm package svelte-splitpanes receives a total of 3,134 weekly downloads. As such, svelte-splitpanes popularity was classified as popular.
We found that svelte-splitpanes 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.