ant-design/components/grid/RowContext.tsx
二货机器人 6aaa7be029
fix: Grid should support ssr for flex gap (#29586)
* fix: SSR not break Grid

* test: Add hydrate test

* fix lint
2021-03-02 20:29:00 +08:00

12 lines
254 B
TypeScript

import { createContext, Context } from 'react';
export interface RowContextState {
gutter?: [number, number];
wrap?: boolean;
supportFlexGap?: boolean;
}
const RowContext: Context<RowContextState> = createContext({});
export default RowContext;