Breakpoint
Media query strings generated based on customizable values.
Default values are the most commonly used breakpoints, but they can be configured as you like.
Usage
Parameters
The generateBreakpoint function accepts only one options parameter, which can have the following properties.
property
type
description
breakpoints
{ [key: string]: number }
custom breakpoint values
Default options
Custom breakpoints
You can pass in custom breakpoints to the generateBreakpoint function. It is recommended to have one breakpoint for 0
and no repeating number.
Last updated