@tinacms/toolkit
Version:
Tina is a lightweight but powerful toolkit for creating a site editing ui with javascript components. Tina surfaces superpowers for dev’s to create, expand on and customize a simple yet intuitive ui for editing content.
23 lines (16 loc) • 701 B
TypeScript
import { FormOptions, Form } from '../packages/forms';
import { WatchableFormValue } from '../packages/react-core';
/**
*/
/**
*/
export { useLocalForm, useForm } from '../packages/react-core';
export type { WatchableFormValue } from '../packages/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;