Simple snap

Using snapSize on a pane makes it snap to his adjacent splitters and borders.

Try shrinking my size, note how I snap below 10% size

<script>
  import { Pane, Splitpanes } from 'svelte-splitpanes';
</script>

<Splitpanes style="height: 400px">
  <Pane snapSize={10}>
    <p>Try shrinking my size, note how I snap below 10% size</p>
  </Pane>

  <Pane />
</Splitpanes>
previous
next