@atlaskit/form
Version:
A form allows people to input information.
17 lines • 450 B
JavaScript
import { createContext } from 'react';
/**
* __Form context__
*
* A form context creates a context for the field values and allows them to be accessed by the children.
*/
export var FormContext = /*#__PURE__*/createContext({
registerField: function registerField() {
return function () {};
},
getCurrentValue: function getCurrentValue() {
return undefined;
},
subscribe: function subscribe() {
return function () {};
}
});