Resizable

Resizable is accessible resizable panel groups and layouts with keyboard support.

One
Two

Usage

import { Resizable } from "@yamada-ui/react"
<Resizable.Root>
  <Resizable.Item />
  <Resizable.Trigger />
</Resizable.Root>

Change Variants

Border
Two
Spacer
Two

Change Color Scheme

One
Two
One
Two

Change Orientation

To change the orientation, set orientation to either "horizontal" or "vertical". By default, "horizontal" is set.

One
Two
One
Two

Use Default Size

To set the default size, set a numeric value (percentage) for defaultSize in Resizable.Item.

One
Two

Use Min and Max Size

To set the minimum and maximum sizes, set numeric values (percentage) for minSize and maxSize in Resizable.Item.

One
Two

Use Keyboard Step

To set the keyboard step, set a numeric value (percentage) for keyboardStep.

One
Two

Collapsible

To make an item collapsible, set collapsible to true.

Specify the minimum value before collapsing with minSize, and the value when collapsed with collapsedSize.

One
Two
One
Two

Add Icons

To add icons, set a ReactNode to the icon of Resizable.Trigger.

One
Two
One
Two

Nested Structure

Left
Top
Bottom
Top
Left
Right

Disable

To disable, set disabled to true.

One
Two
Three
One
Two
Three

Handle Resize Events

If you want to handle resize events, use onResize. onResize provides the changed size and the previous size.

One
Two

Save Values to Local Storage

To save values to local storage, set a key for saving to local storage in storageKey.

One
Two
Left
Middle

Save Values to Cookies

To save values to cookies, set getItem and setItem in storage.

One
Two

Control

One
Two

Props

Accessibility

Currently, this section is being updated due to the migration of v2.