Sanity Library Reference Docs
    Preparing search index...

    Interface TextDefinition

    interface TextDefinition {
        components?: TextComponents;
        deprecated?: DeprecatedProperty;
        description?: string | Element;
        hidden?: ConditionalProperty;
        icon?: ReactNode | ComponentType<{}>;
        initialValue?: InitialValueProperty<any, string>;
        name: string;
        options?: TextOptions;
        placeholder?: string;
        readOnly?: ConditionalProperty;
        rows?: number;
        title?: string;
        type: "text";
        validation?: ValidationBuilder<TextRule, string>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    components?: TextComponents
    deprecated?: DeprecatedProperty
    description?: string | Element
    icon?: ReactNode | ComponentType<{}>
    initialValue?: InitialValueProperty<any, string>
    name: string
    options?: TextOptions
    placeholder?: string
    rows?: number
    title?: string
    type: "text"
    validation?: ValidationBuilder<TextRule, string>