Primitives / foldkit-primitives/media
breakpointFor
function · packages/primitives/src/media/breakpoints.ts:20
function breakpointFor(
width: number,
breakpoints: Readonly<Record<string, number>>,
): string | nullThe breakpoint a width falls in: the name with the largest threshold at or
below it, or null below every threshold. Breakpoints uses it; a view that
has a width of its own can too.