Resizable
The Resizable component is used to resize components.
1. Import
KUMUI exports 3 Resizable-related components:
import { ResizablePanelGroup, ResizableHandle, ResizablePanel } from "@rohitgadekar/kimui";
2. Usage
3. API
3.1 ResizablePanelGroup
| Attribute | Type | Description | Default |
|---|---|---|---|
| direction | string | Defines the direction of resizing. Can be either horizontal or vertical. | "horizontal" |
| className | string | Custom CSS classes for styling the container. | - |
3.2 ResizablePanel
| Attribute | Type | Description | Default |
|---|---|---|---|
| defaultSize | number | Specifies the default size of the panel (in percentage or pixels). | 30 |
| className | string | Custom CSS classes for styling the individual panel. | - |
3.3 ResizableHandle
| Attribute | Type | Description | Default |
|---|---|---|---|
| withHandle | boolean | Indicates whether to display the resizing handle. | true |