schema-components - v3.7.0
    Preparing search index...

    Interface SchemaViewProps<T, SchemaRef, Mode>

    Props accepted by SchemaView.

    Mirrors <SchemaComponent> for the read-only path — no onChange, no validate, and the theme is supplied via the resolver prop rather than SchemaProvider so it can be rendered without a Solid context binding.

    interface SchemaViewProps<
        T = unknown,
        SchemaRef extends string | undefined = undefined,
        Mode extends SchemaIoSide = "output",
    > {
        schema: RejectUnrepresentableZod<T>;
        schemaRef?: SchemaRef;
        io?: Mode;
        value?: InferSchemaValue<T, SchemaRef, Mode>;
        fields?: InferFields<T, SchemaRef>;
        meta?: SchemaMeta;
        description?: string;
        resolver?: SolidComponentResolver;
        widgets?: SolidWidgetMap;
        onDiagnostic?: (diagnostic: Diagnostic) => void;
        strict?: boolean;
        idPrefix?: string;
    }

    Type Parameters

    • T = unknown
    • SchemaRef extends string | undefined = undefined
    • Mode extends SchemaIoSide = "output"
    Index

    Properties

    schemaRef?: SchemaRef
    io?: Mode
    meta?: SchemaMeta
    description?: string

    Theme resolver. Falls back to the headless resolver if omitted.

    widgets?: SolidWidgetMap
    onDiagnostic?: (diagnostic: Diagnostic) => void
    strict?: boolean
    idPrefix?: string