mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 14:29:33 +08:00
17 lines
423 B
TypeScript
17 lines
423 B
TypeScript
import createReactContext from '@ant-design/create-react-context';
|
|
import { ColProps } from '../grid/col';
|
|
import { FormLabelAlign } from './FormItem';
|
|
|
|
export interface FormContextProps {
|
|
vertical: boolean;
|
|
colon?: boolean;
|
|
labelAlign?: FormLabelAlign;
|
|
labelCol?: ColProps;
|
|
wrapperCol?: ColProps;
|
|
}
|
|
|
|
export const FormContext = createReactContext<FormContextProps>({
|
|
labelAlign: 'right',
|
|
vertical: false,
|
|
});
|