@atlaskit/form
Version:
A form allows people to input information.
15 lines (14 loc) • 469 B
TypeScript
import { type FormApi } from 'final-form';
import type { GetCurrentValue, RegisterField } from './types';
/**
* __Form context__
*
* A form context creates a context for the field values and allows them to be accessed by the children.
*/
export declare const FormContext: React.Context<{
registerField: RegisterField;
getCurrentValue: GetCurrentValue;
subscribe: FormApi['subscribe'];
errorMessageLabel?: string;
validMessageLabel?: string;
}>;