@vitus-labs/coolgrid
Version:
Ultra flexible and extensible grid system inspired by Bootstrap grid, based on styled-components
12 lines • 568 B
TypeScript
import { pick } from '@vitus-labs/core';
import type { Obj, ValueType, Context } from "./types";
export type PickThemeProps = <T extends Record<string, unknown>>(props: T, keywords: Array<keyof T>) => ReturnType<typeof pick>;
type GetGridContext = (props: Obj, theme: Obj) => {
columns?: ValueType;
containerWidth?: Record<string, number>;
};
export declare const getGridContext: GetGridContext;
type UseGridContext = (props: Obj) => Context;
declare const useGridContext: UseGridContext;
export default useGridContext;
//# sourceMappingURL=useContext.d.ts.map