@atlaskit/form
Version:
A form allows people to input information.
13 lines (12 loc) • 405 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'];
}>;