Popout Menu Offset
The popoutMenuOffset
prop used to adjust the distance or position at which the pop-out menu is displayed or positioned in relation to its trigger or parent element.
Props
popoutMenuOffset?: {
mainAxis?: number | ((params: { level?: number }) => number)
alignmentAxis?: number | ((params: { level?: number }) => number)
}
The popoutMenuOffset
prop accepts an object with two optional properties:
Property | Description |
---|---|
mainAxis | This property controls the offset distance along the main axis of the menu. |
alignmentAxis | This property controls the offset distance along the alignment axis of the menu. |
Example
/vertical-menu/menu/popout-menu-offset
Source Code