Resizable
LayoutResizable panel via a drag-and-drop separator. Supports horizontal and vertical orientations.
Playground
Controls
Props
| Prop | Type | Default | Description |
|---|---|---|---|
direction | 'horizontal' | 'vertical' | "horizontal" | Separator orientation. |
initialSize | number | 50 | Initial size of panel A (%). |
minSize | number | 15 | Minimum size of panel A (%). |
maxSize | number | 85 | Maximum size of panel A (%). |
Examples
Horizontal
vue
<DsResizable
direction="horizontal"
:initialSize="40"
/>Vertical
vue
<DsResizable
direction="vertical"
:initialSize="40"
/>Skeleton
Use DsResizableSkeleton as a loading placeholder while content is being fetched.
Default
vue
<DsResizableSkeleton />Accessibility
- The separator has role="separator" with aria-orientation, aria-valuenow, aria-valuemin, and aria-valuemax.
- Supports mouse drag and touch on mobile.
