MCPcopy Index your code
hub / github.com/react-bootstrap/react-bootstrap / getOverlayDirection

Function getOverlayDirection

src/helpers.ts:51–59  ·  view source on GitHub ↗
(placement: string, isRTL?: boolean)

Source from the content-addressed store, hash-verified

49export type TransitionType = boolean | TransitionComponent;
50
51export function getOverlayDirection(placement: string, isRTL?: boolean) {
52 let bsDirection = placement;
53 if (placement === 'left') {
54 bsDirection = isRTL ? 'end' : 'start';
55 } else if (placement === 'right') {
56 bsDirection = isRTL ? 'start' : 'end';
57 }
58 return bsDirection;
59}

Callers 3

helpersSpec.tsFile · 0.90
Popover.tsxFile · 0.90
Tooltip.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…