Sanity Library Reference Docs
    Preparing search index...

    Interface TextSchemaType

    This is used for string, text, date and datetime. This interface represent the compiled version at runtime, when accessed through Schema.

    interface TextSchemaType {
        components?: {
            annotation?: ComponentType<any>;
            block?: ComponentType<any>;
            diff?: ComponentType<any>;
            field?: ComponentType<any>;
            inlineBlock?: ComponentType<any>;
            input?: ComponentType<any>;
            item?: ComponentType<any>;
            portableText?: { plugins?: ComponentType<any> };
            preview?: ComponentType<any>;
        };
        placeholder?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    components?: {
        annotation?: ComponentType<any>;
        block?: ComponentType<any>;
        diff?: ComponentType<any>;
        field?: ComponentType<any>;
        inlineBlock?: ComponentType<any>;
        input?: ComponentType<any>;
        item?: ComponentType<any>;
        portableText?: { plugins?: ComponentType<any> };
        preview?: ComponentType<any>;
    }
    placeholder?: string

    This will be removed.