@linzjs/step-ag-grid
Version:
[](https://github.com/semantic-release/semantic-release) > Reusable [ag-grid](https://www.ag-grid.com/) component for LINZ / Toitū te whenua.
20 lines (19 loc) • 682 B
TypeScript
import { MutableRefObject } from 'react';
import { MenuDirection } from '../types';
import { getPositionHelpers } from './getPositionHelpers';
export interface placeToporBottomParams {
anchorRect: DOMRect;
placeToporBottomX: number;
placeTopY: number;
placeBottomY: number;
arrowRef: MutableRefObject<HTMLElement | null>;
arrow?: boolean;
direction: 'left' | 'right' | 'top' | 'bottom';
position: 'auto' | 'anchor' | 'initial';
}
export declare const placeToporBottom: (props: ReturnType<typeof getPositionHelpers> & placeToporBottomParams) => {
arrowX?: number | undefined;
x: number;
y: number;
computedDirection: MenuDirection;
};