FileInput

inprogress

    Overview

    The FileInput component is used to allow users to choose one or more files from their device storage. It's designed to simplify the process of file selection and can be used to upload images and documents.

    When to use

    • When you need to allow users to upload files.
    • When you need to let users select files for further processing or display in the application.

    When to consider an alternative

    t.b.d.


    Component

    Default

    States

    FileInput.Preview

    Properties

    Default

    PropertyTypeRequiredDefault
    utilClassNamesStringfalse-
    labelStringfalse-
    actionsNodefalse-
    onFilesSelectedFuncfalse-
    multipleBoolfalse-
    errorBoolfalse-
    childrenNodefalse-

    FileInput.Preview

    PropertyTypeRequiredDefaultDescription
    fileShape
    { "name": "String", "type": "String" }
    false-
    isLoadingBoolfalse-
    onEditFuncfalse-Renders an IconButton, function will be passed to button
    onDeleteFuncfalse-Renders an IconButton, function will be passed to button
    hasDescriptionFuncfalse-Renders an IconButton, function will be passed to button