@bigmistqke/solid-grid-split
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

solid-grid-split

solid-grid-split

pnpm

Solid split-pane-component based on CSS grid templates: the <Grid/>-component returns a span with a CSS grid template, the values defined by its children's props. All valid CSS grid size units are supported, such as fr (fraction), px (pixels), and % (percentage) and CSS grid-rules apply (you can not combine fraction units with min() or max()).

You should probably use @corvu/resizable instead.

Quick start

Install it:

npm i @bigmistqke/solid-grid-split
# or
yarn add @bigmistqke/solid-grid-split
# or
pnpm add @bigmistqke/solid-grid-split

Use it:

import { Split } from '@bigmistqke/solid-grid-split'

function App() {
  return (
    <Split>
      <Split.Pane size="1fr">Left</Split.Pane>
      <Split.Handle size="10px" />
      <Split size="100px" max="10%" type="row">
        <Split.Pane size="1fr" max="100px">
          Top
        </Split.Pane>
        <Split.Handle size="10px" />
        <Split.Pane size="50%">Bottom</Split.Pane>
      </Split>
      <Split.Handle size="10px" />
      <Split.Pane size="1fr">Right</Split.Pane>
    </Split>
  )
}

Readme

Keywords

Package Sidebar

Install

npm i @bigmistqke/solid-grid-split

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

63 kB

Total Files

8

Last publish

Collaborators

  • bigmistqke