You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

luna-split-pane

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

luna-split-pane

A component for creating resizable split panes

0.2.5
latest
Source
npmnpm
Version published
Weekly downloads
16
-60%
Maintainers
1
Weekly downloads
 
Created
Source

Luna Split Pane

A component for creating resizable split panes.

Demo

https://luna.liriliri.io/?path=/story/split-pane

Install

Add the following script and style to your page.

<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/luna-split-pane/luna-split-pane.css" />
<script src="//cdn.jsdelivr.net/npm/luna-split-pane/luna-split-pane.js"></script>

You can also get it on npm.

npm install luna-split-pane --save
import 'luna-split-pane/luna-split-pane.css'
import LunaSplitPane from 'luna-split-pane'

Usage

const splitPane = new SplitPane(container, {
  direction: 'horizontal', // or 'vertical',
})
splitPane.append(document.createElement('div'), {
  minSize: 100,
  weight: 50,
})

Configuration

  • direction('vertical' | 'horizontal'): Direction to split.

Api

append(el: HTMLElement, options?: IElOptions): void

Append an element.

update(el: HTMLElement, options: IElOptions): void

Update an element's options.

Keywords

ui

FAQs

Package last updated on 15 Jul 2025

Did you know?

Socket

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.

Install

Related posts