UNPKG

tippy.js

Version:

Vanilla JS Tooltip Library

9 lines (8 loc) • 219 B
/** * Returns the non-shifted placement (e.g., 'bottom-start' => 'bottom') * @param {String} placement * @return {String} */ export default function getCorePlacement(placement) { return placement.replace(/-.+/, '') }