@mantine/carousel
Version:
Embla based carousel
11 lines (9 loc) • 354 B
JavaScript
'use client';
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;
}
export { getChevronRotation };
//# sourceMappingURL=get-chevron-rotation.mjs.map