Hex Core JS
    Preparing search index...

    Type Alias FileFieldProps<FV>

    FileFieldProps: FieldProps<FV, FileFieldValue> & {
        accept?: string | string[];
        autoOpenImageEditor?: boolean;
        format?: FieldFormatFunction<FileFieldValue>;
        imageEditorOptions?: ImageEditorOptions;
        imagePreviewSizing?: ImageProps["sizing"];
        Input?: (props: FileFieldInputProps) => JSX.Element | null;
        maxSizeBytes?: number;
        noImageEditor?: boolean;
    } & Partial<ClassNameProps & StyleProps>

    Type Parameters

    Type Declaration

    • Optionalaccept?: string | string[]

      Defines the file types that the input should accept.

    • OptionalautoOpenImageEditor?: boolean

      Passed to the Input.

    • Optionalformat?: FieldFormatFunction<FileFieldValue>

      Format function for the value. Controls how the value should be formatted when displayed in smaller contexts where only strings are allowed.

    • OptionalimageEditorOptions?: ImageEditorOptions

      Passed to the Input.

    • OptionalimagePreviewSizing?: ImageProps["sizing"]

      Passed to the Input.

    • OptionalInput?: (props: FileFieldInputProps) => JSX.Element | null

      The input component to use when editing.

    • OptionalmaxSizeBytes?: number

      Maximum file size allowed (in bytes). Overrides the value from settings. Use -1 for no limit.

    • OptionalnoImageEditor?: boolean

      Passed to the Input.