@mantine/carousel
Version:
Embla based carousel
10 lines (9 loc) • 437 B
JavaScript
"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
exports.getChevronRotation = getChevronRotation;
//# sourceMappingURL=get-chevron-rotation.cjs.map