svelte-split
v0.0.4
Published
svelte-split is ...
Downloads
4
Maintainers
Readme
svelte-split
svelte-split is ...
Demo
- Live Demo: https://svelte-split.onrender.com
- REPL: https://svelte.dev/repl/cc5bb5705d07470993183e58ff62f508?version=3.47.0
Install
$ npm install svelte-split --save
Usage
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/phi-jp/[email protected]/meltline.css">
<script>
import Split from "svelte-split";
</script>
<Split class='f s-full' storageKey='demo' defaultSizes='{[30, 40, 30]}'>
<div class='bg-red text-white f fh'>
<div class='fs32 bold'>
red
</div>
</div>
<div class='bg-green text-white f fh'>
<div class='fs32 bold'>
green
</div>
</div>
<div class='bg-blue text-white f fh'>
<div class='fs32 bold'>
blue
</div>
</div>
</Split>
Development
$ npm run dev
Release
$ npm run release
License
MIT