mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
16 lines
380 B
TypeScript
16 lines
380 B
TypeScript
import createReactContext, { Context } from 'create-react-context';
|
|
import { ColProps } from '../grid/col';
|
|
|
|
export interface FormContextProps {
|
|
vertical: boolean;
|
|
colon?: boolean;
|
|
labelAlign?: string;
|
|
labelCol?: ColProps;
|
|
wrapperCol?: ColProps;
|
|
}
|
|
|
|
export const FormContext: Context<FormContextProps> = createReactContext({
|
|
labelAlign: 'right',
|
|
vertical: false,
|
|
});
|