@witchcraft/editor
    Preparing search index...

    Type Alias FileViewProps

    Props passed to custom file view component.

    type FileViewProps = {
        height?: number;
        id?: string;
        ignoreAspectOnResize?: boolean;
        src?: string;
        width?: number;
    }
    Index
    height?: number
    id?: string

    The node id (usually a nanoid from FileInserter).

    ignoreAspectOnResize?: boolean

    By default the resize handles will set both width/height, but if rendering with a custom injected component, you might want some previews to control their own height. If so set this node property to true

    src?: string

    Only present for image files.

    width?: number