shelving
Version:
Toolkit for using data in JavaScript.
14 lines (13 loc) • 568 B
TypeScript
import type { ReactElement } from "react";
import type { Schema } from "../../schema/Schema.js";
import type { ImmutableDictionary } from "../../util/dictionary.js";
import type { ValueInputProps } from "./Input.js";
export interface DictionaryInputProps<T> extends ValueInputProps<ImmutableDictionary<T>> {
one?: string;
many?: string;
min?: number | undefined;
max?: number | undefined;
/** Schema for the items in the repeater. */
items: Schema<T>;
}
export declare function DictionaryInput<T>(props: DictionaryInputProps<T>): ReactElement;