@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.
34 lines (30 loc) • 842 B
TypeScript
/**
*/
/// <reference types="react" />
import PropTypes from 'prop-types';
import { Form } from '../forms';
interface RenderProps {
isEditing: boolean;
setIsEditing(nextVal: boolean): any;
}
export interface Props {
form: Form;
children({ isEditing, setIsEditing }: RenderProps): any;
}
export declare function TinaForm({ form, children }: Props): JSX.Element;
interface TinaFieldsProps {
name: string;
type?: string;
Component: any;
children: any;
}
export declare function TinaField({ Component, children, ...fieldProps }: TinaFieldsProps): any;
export declare namespace TinaField {
var propTypes: {
name: PropTypes.Requireable<string>;
type: PropTypes.Requireable<string>;
Component: PropTypes.Validator<any>;
children: PropTypes.Requireable<any>;
};
}
export {};