MCPcopy
hub / github.com/floating-ui/floating-ui / getBasePlacement

Function getBasePlacement

src/utils/getBasePlacement.js:4–8  ·  view source on GitHub ↗
(
  placement: Placement | typeof auto
)

Source from the content-addressed store, hash-verified

2import { type BasePlacement, type Placement, auto } from '../enums';
3
4export default function getBasePlacement(
5 placement: Placement | typeof auto
6): BasePlacement {
7 return (placement.split('-')[0]: any);
8}

Callers 9

computeOffsetsFunction · 0.85
computeAutoPlacementFunction · 0.85
preventOverflowFunction · 0.85
distanceAndSkiddingToXYFunction · 0.85
arrowFunction · 0.85
computeStylesFunction · 0.85
flipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected