packages/components/directives/eui-resizable/eui-resizable.component.ts
A resizable container component that allows users to dynamically adjust the width of its content. The component provides a draggable handle positioned on either the left or right edge, enabling flexible layout adjustments. Commonly used for collapsible sidebars, adjustable panels, or responsive content areas where users need manual control over element dimensions.
| encapsulation | ViewEncapsulation.None |
| selector | eui-resizable |
| standalone | true |
| imports |
EUI_ICON
|
| styleUrls | ./styles/index.scss |
| templateUrl | ./eui-resizable.component.html |
Properties |
Inputs |
HostBindings |
Accessors |
| ariaLabel |
Type : string
|
Default value : 'Press the left or right arrow key to resize the panel'
|
|
Accessible label for the separator handle. |
| ariaValueMax |
Type : number
|
Default value : undefined
|
|
Maximum width value in pixels for aria-valuemax. |
| ariaValueMin |
Type : number
|
Default value : 0
|
|
Minimum width value in pixels for aria-valuemin. |
| ariaValueNow |
Type : number
|
Default value : undefined
|
|
Current width value in pixels for aria-valuenow. |
| euiResizableHidden |
Default value : false, { transform: booleanAttribute }
|
|
Determines if the resizable feature is disable or not |
| position |
Type : EuiResizablePosition
|
Default value : 'right'
|
|
Determines the placement of the resizable handle and the direction of resize behavior. When set to 'left', the handle appears on the left edge and resizing expands/contracts from the left. When set to 'right', the handle appears on the right edge and resizing expands/contracts from the right. |
| attr.data-e2e |
Type : string
|
Default value : 'eui-resizable'
|
| class |
Type : string
|
| e2e |
Type : string
|
Default value : 'eui-resizable'
|
Decorators :
@HostBinding('attr.data-e2e')
|
| cssClasses |
getcssClasses()
|