UNPKG

smart-react-components

Version:

React UI library, wide variety of editable ready to use Styled and React components.

23 lines (22 loc) 637 B
import { Theme } from "../theme"; export default class TableHelper { /** * Compares two breakpoints and returns the first defined one respectively. * * @param a * @param b */ private static compareBreakpoints; /** * Gets the breakpoint value according to the given breakpoints and the window size. * Breakpoints are given as an array from small to large - [xs, sm, md, lg, xl] * * @param x$ * @param y$ * @param theme */ static getBreakpointValue(x$: number[], y$: number[], theme: Theme): { x: number; y: number; }; }