nextDetent
The detent one step up or down from current, clamped at the ends.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { nextDetent } from "@mapcairn/core";
function nextDetent(current: SheetDetent, direction: "up" | "down"): SheetDetent;
Parameters
current(SheetDetent)direction("up" | "down")
Returns
SheetDetent