setBreakpoints
Updates breakpoints for narrow, wide, short and tall properties.
setBreakpoints(small: number, large: number): void
Notes
- Breakpoints are set, and other properties are updated immediately.
Parameters
- small — The first breakpoint (narrow/short and below), in logical pixels
- large — The second breakpoint (wide/tall and above), in logical pixels
Related
- interface ViewportContextInterface definition for an object that contains information about the user’s viewport, e.g. browser window.