Sanity Library Reference Docs
    Preparing search index...

    Interface ArrayInputFunctionsProps<Item, SchemaType>Beta

    These are the props an implementation of the ArrayFunctions component will receive

    interface ArrayInputFunctionsProps<Item, SchemaType extends ArraySchemaType> {
        children?: ReactNode;
        onChange: (event: PatchEvent) => void;
        onItemAppend: (itemValue: Item) => void;
        onItemPrepend: (itemValue: Item) => void;
        onValueCreate: (type: SchemaType) => Item;
        path: Path;
        readOnly?: boolean;
        schemaType: SchemaType;
        value?: Item[];
    }

    Type Parameters

    Index

    Properties

    children?: ReactNode
    onChange: (event: PatchEvent) => void
    onItemAppend: (itemValue: Item) => void
    onItemPrepend: (itemValue: Item) => void
    onValueCreate: (type: SchemaType) => Item
    path: Path
    readOnly?: boolean
    schemaType: SchemaType
    value?: Item[]