chowa
Version:
UI component library based on React
39 lines (38 loc) • 1.29 kB
TypeScript
/**
* @license chowa v1.1.3
*
* Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as React from 'react';
import * as PropTypes from 'prop-types';
import { OmitProps } from '../utils';
import createForm from './create-form';
export interface FormProps extends OmitProps<React.FormHTMLAttributes<any>, 'onSubmit'> {
className?: string;
style?: React.CSSProperties;
labelPosition?: 'top' | 'left' | 'right';
inline?: boolean;
onSubmit?: () => void;
}
declare class Form extends React.PureComponent<FormProps> {
static propTypes: {
className: PropTypes.Requireable<string>;
style: PropTypes.Requireable<object>;
labelPosition: PropTypes.Requireable<string>;
inline: PropTypes.Requireable<boolean>;
onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
};
static defaultProps: {
inline: boolean;
labelPosition: string;
};
static Item: React.SFC<import("./form-item").FormItemProps>;
static createForm: typeof createForm;
constructor(props: FormProps);
private onSubmitHandler;
render(): JSX.Element;
}
export default Form;