UNPKG

@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.

42 lines (38 loc) 1.16 kB
/** */ /// <reference types="react" /> import { Field, Form } from '../../forms'; export interface GroupFieldDefinititon extends Field { component: 'group'; fields: Field[]; } export interface GroupProps { input: any; meta: any; field: GroupFieldDefinititon; form: any; tinaForm: Form; } export declare const Group: (props: import("./wrapFieldWithMeta").InputFieldType<GroupProps, GroupFieldDefinititon>) => JSX.Element; export declare const PanelHeader: ({ onClick, children }: { onClick: any; children: any; }) => JSX.Element; export declare const PanelBody: ({ id, children }: { id: any; children: any; }) => JSX.Element; export declare const GroupPanel: ({ isExpanded, className, style, ...props }: { [x: string]: any; isExpanded: any; className?: string; style?: {}; }) => JSX.Element; export interface GroupFieldProps { field: Field; } export declare function GroupField(props: GroupFieldProps): JSX.Element; export declare const GroupFieldPlugin: { name: string; Component: (props: import("./wrapFieldWithMeta").InputFieldType<GroupProps, GroupFieldDefinititon>) => JSX.Element; };