Skip to content

Commit

Permalink
Nesting example
Browse files Browse the repository at this point in the history
  • Loading branch information
BipanKishore committed May 9, 2024
1 parent 0d68d44 commit 867a730
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,35 @@ export const CustomResizer = ({

```

## Nesting

```tsx

<ResizablePanes uniqueId="uniqueId" vertical resizerClass="bg-slate-500">

<Pane id="P0" size={1}>
<ResizablePanes uniqueId="uniqueId2" resizerClass="bg-slate-500">

<Pane id="P01" size={2}>
Your child component 1
</Pane>
<Pane id="P01" size={3}>
Your child component 2
</Pane>

</ResizablePanes>
</Pane>

<Pane id="P1" size={2}>
Your component 2
</Pane>
<Pane id="P2" size={3}>
Your component 3
</Pane>
</ResizablePanes>

```

## [Quick Demo](https://bipankishore.github.io/resizable-panes/)

### Feel Free to Raise Pull Request

0 comments on commit 867a730

Please sign in to comment.