mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
14 lines
317 B
TypeScript
14 lines
317 B
TypeScript
import { createContext } from 'react';
|
|
|
|
export type GutterUnit = number | string;
|
|
|
|
export type RowContextGutter = readonly [GutterUnit, GutterUnit];
|
|
export interface RowContextState {
|
|
gutter?: RowContextGutter;
|
|
wrap?: boolean;
|
|
}
|
|
|
|
const RowContext = createContext<RowContextState>({});
|
|
|
|
export default RowContext;
|