UNPKG

@mantine/carousel

Version:
10 lines (9 loc) 419 B
"use client"; //#region packages/@mantine/carousel/src/get-chevron-rotation.ts function getChevronRotation({ dir, orientation, direction }) { if (direction === "previous") return orientation === "horizontal" ? 90 * (dir === "ltr" ? 1 : -1) : -180; return orientation === "horizontal" ? 90 * (dir === "ltr" ? -1 : 1) : 0; } //#endregion export { getChevronRotation }; //# sourceMappingURL=get-chevron-rotation.mjs.map