Sanity Library Reference Docs
    Preparing search index...

    Interface ObjectFieldProps<T>

    interface ObjectFieldProps<T = Record<string, unknown>> {
        actions?: DocumentFieldAction[];
        changed: boolean;
        children: ReactNode;
        collapsed?: boolean;
        collapsible?: boolean;
        description: string;
        index: number;
        inputId: string;
        inputProps: ObjectInputProps<T>;
        level: number;
        name: string;
        onClose: () => void;
        onCollapse: () => void;
        onExpand: () => void;
        onOpen: () => void;
        open: boolean;
        path: Path;
        presence: FormNodePresence[];
        renderDefault: (props: FieldProps) => Element;
        schemaType: ObjectSchemaType;
        title: string;
        validation: FormNodeValidation[];
        value: T;
        version?: string;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    changed: boolean
    children: ReactNode
    collapsed?: boolean
    collapsible?: boolean
    description: string
    index: number
    inputId: string
    inputProps: ObjectInputProps<T>
    level: number
    name: string
    onClose: () => void
    onCollapse: () => void
    onExpand: () => void
    onOpen: () => void
    open: boolean
    path: Path
    presence: FormNodePresence[]
    renderDefault: (props: FieldProps) => Element
    schemaType: ObjectSchemaType
    title: string
    validation: FormNodeValidation[]
    value: T
    version?: string