UNPKG

tinacms

Version:

[![GitHub license](https://img.shields.io/github/license/tinacms/tinacms?color=blue)](https://github.com/tinacms/tinacms/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/tinacms.svg?style=flat)](https://www.npmjs.com/package/tinacms) [![Bui

13 lines (12 loc) 645 B
import { FormOptions, Form } from '../forms'; import { WatchableFormValue } from '../react-core'; export { useLocalForm, useForm } from '../react-core'; export type { WatchableFormValue } from '../react-core'; /** * @deprecated See https://github.com/tinacms/rfcs/blob/master/0006-form-hook-conventions.md */ export declare function useGlobalForm<FormShape = any>(options: FormOptions<any>, watch?: Partial<WatchableFormValue>): [FormShape, Form | undefined]; /** * Creates and registers ScreenPlugin that renders the given Form. */ export declare function useFormScreenPlugin(form: Form, icon?: any, layout?: 'fullscreen' | 'popup'): void;