@gfazioli/mantine-split-pane
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

Mantine Split pane Component


NPM version NPM Downloads NPM License

Overview

This component is created on top of the Mantine library.

Utilizing Mantine UI, enables users to create a flexible layout with resizable split panes. It supports both vertical and horizontal splitting, allowing the arrangement of content in various configurations. The component seamlessly handles nested split panes, enabling complex layouts with ease. With intuitive resizing functionality, users can adjust the size of each pane effortlessly. This component provides a responsive and user-friendly interface for organizing and displaying content in a way that best suits the application's needs.

Installation

npm install @gfazioli/mantine-split-pane

or

yarn add @gfazioli/mantine-split-pane

After installation import package styles at the root of your application:

import '@gfazioli/mantine-split-pane/styles.css';

Usage

import { Split } from '@gfazioli/mantine-split-pane';
import { Paper } from '@mantine/core';

function Demo() {
  return (
    <Split>
      <Split.Pane>
        <Paper withBorder w="100%" mih="100%">
          <h1>Pane 1</h1>
        </Paper>
      </Split.Pane>

      <Split.Pane>
        <Paper withBorder>
          <h1>Pane 2</h1>
        </Paper>
      </Split.Pane>
    </Split>
  );
}

Package Sidebar

Install

npm i @gfazioli/mantine-split-pane

Weekly Downloads

4

Version

0.2.3

License

MIT

Unpacked Size

239 kB

Total Files

53

Last publish

Collaborators

  • gfazioli