UNPKG

tinacms

Version:

[![GitHub license](https://img.shields.io/github/license/tinacms/tinacms?color=blue)](https://github.com/tinacms/tinacms/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/tinacms.svg?style=flat)](https://www.npmjs.com/package/tinacms) [![Bui

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