Resizable
Draggable split panes for resizable layouts.
Import
tsx
import { ResizablePanelGroup, ResizablePanel, ResizableHandle } from "@cronus-ui/ui";
bash
npx cronus-ui add resizable
Examples
.cronus
The same component declared in Cronus. Emitted at build time from the audit fixtures — the kernel renders it as HTML with no React.
default.cronus
app "audit-fixtures" {
port 5176
}
style {
preset aurora
theme dark
}
component ResizableDefault layout:inline style:resizable {
aria-label:"Panels"
label "Panels"
text "One"
text "Two"
}
page "/audit/resizable/default" type:custom {
use ResizableDefault
}
API Reference
Generated from the component's exported types.
ResizableHandleProps
Extends ComponentProps<typeof ResizablePrimitiveHandle>
| Prop | Type | Default | Description |
|---|---|---|---|
withHandle | boolean | false | Render a centered grip affordance on the divider. Defaults to `false`. |
ResizablePanelGroupProps
Extends ComponentProps<typeof ResizablePrimitivePanelGroup>
| Prop | Type | Default | Description |
|---|---|---|---|
direction | "horizontal" | "vertical" | — | — |
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |
ResizablePanelProps
Extends ComponentProps<typeof ResizablePrimitivePanel>
| Prop | Type | Default | Description |
|---|---|---|---|
defaultSize | number | — | — |
minSize | number | — | — |
maxSize | number | — | — |
collapsible | boolean | — | — |
children | ReactNode | — | Contents of the component. |