ant-design/components/form/context.ts

16 lines
380 B
TypeScript
Raw Normal View History

import createReactContext, { Context } from 'create-react-context';
import { ColProps } from '../grid/col';
export interface FormContextProps {
vertical: boolean;
2019-03-08 11:25:37 +08:00
colon?: boolean;
2019-03-07 15:14:27 +08:00
labelAlign?: string;
labelCol?: ColProps;
wrapperCol?: ColProps;
}
export const FormContext: Context<FormContextProps> = createReactContext({
2019-03-07 15:14:27 +08:00
labelAlign: 'right',
vertical: false,
});