rw.getBreakpoints
Accessing Breakpoints
const transformHook = (rw) => {
const { breakpoints } = rw.theme;
const { names, screens } = breakpoints;
console.log(names);
// ["sm", "md", "lg", "xl", "2xl"]
console.log(screens);
// { sm: 640, md: 768, lg: 1024, xl: 1280, "2xl": 1536 }
};
exports.transformHook = transformHook;Properties
Property
Type
Description
Common Patterns
Generate Responsive Sources
Build Responsive Classes
Responsive Visibility
Default Breakpoints
Name
Width
Notes
Last updated
Was this helpful?

