@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
28 lines (27 loc) • 876 B
TypeScript
/**
* Form module.
* @module @massds/mayflower-react/Form
* @requires module:@massds/mayflower-assets/scss/01-atoms/forms
* @requires module:@massds/mayflower-assets/scss/04-templates/form-page
*/
import React from 'react';
export interface FormProps {
children?: React.ReactNode;
}
declare const Form: (props: FormProps) => any;
export interface FormProviderProps {
/** Controls if child Input components should hook into FormContext or not */
isActive?: boolean;
children?: React.ReactNode;
}
declare class FormProvider extends React.Component<FormProviderProps> {
constructor(props: any);
getValues: () => {};
getValue: (inputId: any) => any;
setValue: (input: any, afterUpdate: any) => void;
hasId: (inputId: any) => any;
updateState: (newState: any) => void;
render(): any;
}
export { FormProvider };
export default Form;