@fluentui/react-northstar
Version:
A themable React component library.
21 lines (20 loc) • 1.11 kB
TypeScript
import * as PopperJs from '@popperjs/core';
import { Alignment, Offset, Position } from './types';
/**
* | position | alignment | placement | placement RTL
* -----------------------------------------------------------------
* | above | start | top-start | top-end
* | above | center | top | top
* | above | end | top-end | top-start
* | below | start | bottom-start | bottom-end
* | below | center | bottom | bottom
* | below | end | bottom-end | bottom-start
* | before | top | left-start | right-start
* | before | center | left | right
* | before | bottom | left-end | right-end
* | after | top | right-start | left-start
* | after | center | right | left
* | after | bottom | right-end | left-end
*/
export declare const getPlacement: (align: Alignment, position: Position, rtl: boolean) => PopperJs.Placement;
export declare const applyRtlToOffset: (offset: Offset | undefined) => Offset | undefined;