UNPKG

@conduction/components

Version:

React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)

24 lines (23 loc) 736 B
/// <reference types="react" /> import { Control, FieldValues } from "react-hook-form"; import { IReactHookFormProps } from "../types"; /** * Export KeyValue input component (wrapped in FormFieldGroup) */ interface CreateKeyValueProps { name: string; control: Control<FieldValues, any>; defaultValue?: IKeyValue[]; disabled?: boolean; copyValue?: { canCopy: boolean; onCopied?: () => any; }; hideErrorMessage?: boolean; } export interface IKeyValue { key: string; value: string; } export declare const CreateKeyValue: ({ name, errors, control, validation, defaultValue, disabled, copyValue, hideErrorMessage, }: CreateKeyValueProps & IReactHookFormProps) => JSX.Element; export {};