
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
collapsible-split-layout
Advanced tools
A React component to display a splitted layout were one of the sides can be collapsed/expanded without affecting the whole layout.
A React component to display a splitted layout were one of the sides can be collapsed/expanded without affecting the whole layout.
You can access the storybook for these components here.
There are three components. One (CollapsibleSplitLayout) for displaying on demand one of the following components and two components (CollapsibleSplitLayoutHorizontal and CollapsibleSplitLayoutVertical) used by the first component.
Name | Type | Required | Default | Description |
---|---|---|---|---|
childCollapsible | React.ReactNode | yes | - | The collapsible component |
childView | React.ReactNode | yes | - | The non-collapsible component |
gap | number | no | 0 | The gap between componetns in MUI units (1 unit = 8px) |
isReversed | boolean | no | false | The collapsible component is for false on the left |
maxCollapsibleSize | number | no | - | The max size of collapsible component |
minCollapsibleSize | number | no | - | The min size of collapsible component |
Only for CollapsibleSplitLayout
Name | Type | Required | Default | Description |
---|---|---|---|---|
isVertical | boolean | no | false | It is used the CollapsibleSplitLayoutHorizontal |
CollapsibleSplitLayout uses | React |
---|---|
1.0.x | 18.0.0 |
Displaying a horizontal layout (collapsible on left):
import * as React from 'react';
import { CollapsibleSplitLayoutHorizontal } from 'collapsible-split-layout';
class App extends React.Component {
render() {
return (
<div className="App">
<CollapsibleSplitLayoutHorizontal
childCollapsible={<FlexibleBox />}
childView={<FixView />}
/>
</div>
);
}
}
export default App;
Displaying a reversed vertical layout (collapsible down):
import * as React from 'react';
import { CollapsibleSplitLayoutRaw } from 'collapsible-split-layout';
class App extends React.Component {
render() {
return (
<div className="App">
<CollapsibleSplitLayout
isVertical
childCollapsible={<FlexibleBox />}
childView={<FixView />}
isReversed
/>
</div>
);
}
}
export default App;
FAQs
A React component to display a splitted layout were one of the sides can be collapsed/expanded without affecting the whole layout.
The npm package collapsible-split-layout receives a total of 0 weekly downloads. As such, collapsible-split-layout popularity was classified as not popular.
We found that collapsible-split-layout demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.