Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web component wc-split

Unopinionated utilities for resizeable split views (also called panes or frames). It handles weird edge cases so you don't have to. Split.js is CSS-driven, only using JS to recalculate CSS styles on drag. Split.js does not attach any window event listeners, instead relying on CSS for the layout when the window size changes. This keeps the JS overhead extremely low.

Embed Split.js in a Web Component.

Using this component

Script tag

  • Put a script tag similar to this <script src='https://unpkg.com/@giwisoft/wc-split@0.0.1/dist/wc-split.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install @giwisoft/wc-split --save
  • Put a script tag similar to this <script src='node_modules/@giwisoft/wc-split/dist/wc-split.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Contribute

yarn install
yarn dev

To build the component for production, run:

yarn build

To run the unit tests for the components, run:

yarn test

Integrations

See here

About

WebComponent for div splitting and resizing

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages