Sanity Library Reference Docs
    Preparing search index...

    Interface StringDefinition

    interface StringDefinition {
        components?: StringComponents;
        deprecated?: DeprecatedProperty;
        description?: string | Element;
        hidden?: ConditionalProperty;
        icon?: ReactNode | ComponentType<{}>;
        initialValue?: InitialValueProperty<any, string>;
        name: string;
        options?: StringOptions;
        placeholder?: string;
        readOnly?: ConditionalProperty;
        title?: string;
        type: "string";
        validation?: ValidationBuilder<StringRule, string>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    components?: StringComponents
    deprecated?: DeprecatedProperty
    description?: string | Element
    icon?: ReactNode | ComponentType<{}>
    initialValue?: InitialValueProperty<any, string>
    name: string
    options?: StringOptions
    placeholder?: string
    title?: string
    type: "string"
    validation?: ValidationBuilder<StringRule, string>