mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
13 lines
315 B
TypeScript
13 lines
315 B
TypeScript
|
import createReactContext, { Context } from 'create-react-context';
|
||
|
import { ColProps } from '../grid/col';
|
||
|
|
||
|
export interface FormContextProps {
|
||
|
vertical: boolean;
|
||
|
labelCol?: ColProps;
|
||
|
wrapperCol?: ColProps;
|
||
|
}
|
||
|
|
||
|
export const FormContext: Context<FormContextProps> = createReactContext({
|
||
|
vertical: false,
|
||
|
});
|