@acrool/react-grid
Version:
Most modern rwd grid system by react + styled-component
13 lines (12 loc) • 363 B
TypeScript
import { IGridSetting } from '../types';
/**
* 產生 Breakpoint Spacer 樣式
* @param spacer
*/
export declare const createBreakpointSpacer: (spacer: IGridSetting["spacer"]) => string | string[];
/**
* 計算帶單位的數字
* @param unitSize
* @param fn
*/
export declare const calcUnitSize: (unitSize: string, fn: (num: number) => number) => string;