Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@rich_harris/svelte-split-pane
Advanced tools
A <SplitPane>
component.
<script>
import { SplitPane } from '@rich_harris/svelte-split-pane';
const dividerColor = 'black';
const dividerThickness = '20px';
</script>
<SplitPane
type="horizontal"
id="main"
min="100px"
max="-100px"
pos="50%"
priority="min"
--color={dividerColor}
--thickness={dividerThickness}
>
<section slot="a">this is on the left</section>
<section slot="b">this is on the right</section>
</SplitPane>
Of the properties that can be set on the component, only type
is required:
type
can be horizontal
, in which case the panes will be split left-right, or vertical
in which case it will be split top-bottomid
will be added to the element as a data-pane={id}
attribute, allowing you to (for example) override the --pos
CSS custom property on mobilemin
, max
and pos
can be expressed as ${number}%
, ${number}px
, ${number}em
or ${number}rem
. Positive numbers are measured from the left/top, negative numbers are measured from the right/bottompriority
determines whether the min
or max
constraint wins in cases where they conflict--color
determines the color of the divider between panes, and defaults to transparent
--thickness
determines how thick the 'hit area' is for the divider, and defaults to 8px
FAQs
A `<SplitPane>` component.
The npm package @rich_harris/svelte-split-pane receives a total of 1,840 weekly downloads. As such, @rich_harris/svelte-split-pane popularity was classified as popular.
We found that @rich_harris/svelte-split-pane 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.