UNPKG

@atlaskit/form

Version:

A form allows people to input information.

23 lines (22 loc) 579 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FormContext = void 0; var _react = require("react"); /** * __Form context__ * * A form context creates a context for the field values and allows them to be accessed by the children. */ var FormContext = exports.FormContext = /*#__PURE__*/(0, _react.createContext)({ registerField: function registerField() { return function () {}; }, getCurrentValue: function getCurrentValue() { return undefined; }, subscribe: function subscribe() { return function () {}; } });