Socket
Book a DemoInstallSign in
Socket

@bigmistqke/solid-grid-split

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bigmistqke/solid-grid-split

Solid pane-component based on grid-templates

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
0
Created
Source

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>
  )
}

Keywords

solid

FAQs

Package last updated on 08 Oct 2024

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