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