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.

15 lines (14 loc) 610 B
/// <reference types="react" /> import { InputProps } from '../components'; export interface ColorFieldProps { colorFormat: string; colors: string[]; widget?: 'sketch' | 'block'; } export declare const ColorField: (props: import("./wrapFieldWithMeta").InputFieldType<InputProps, ColorFieldProps>) => JSX.Element; export declare const ColorFieldPlugin: { name: string; Component: (props: import("./wrapFieldWithMeta").InputFieldType<InputProps, ColorFieldProps>) => JSX.Element; parse: (value?: string) => string; validate(value: any, values: any, meta: any, field: any): string; };