matcha-keystone-utils
Version:
Useful features for Keystone 6: validators, fields, componentBlocks...
6 lines (5 loc) • 441 B
TypeScript
import React from "react";
import { CellComponent, FieldController, FieldControllerConfig, FieldProps, JSONValue } from "@keystone-6/core/types";
export declare const controller: (config: FieldControllerConfig<JSONValue | undefined>) => FieldController<string | null, string>;
export declare const Cell: CellComponent;
export declare const Field: ({ field, value, onChange, autoFocus, }: FieldProps<typeof controller>) => React.JSX.Element;