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.

26 lines (22 loc) 713 B
/** */ import React from 'react'; import { InputProps } from 'react-select/lib/components/Input'; import { InputFieldType } from '../wrapFieldWithMeta'; import type { MdxTemplate } from './plate/types'; export declare type RichTextType = React.PropsWithChildren<InputFieldType<InputProps, { templates: MdxTemplate[]; }>>; export declare const MdxFieldPlugin: { name: string; Component: (props: InputFieldType<InputProps, { templates: MdxTemplate[]; }>) => JSX.Element; }; export declare const MdxFieldPluginExtendible: { name: string; validate(value: any): string; Component: (props: InputFieldType<InputProps, { templates: MdxTemplate[]; }>) => JSX.Element; };