Style and Appearance in React File Upload

03 Sep 20261 minute to read

The following CSS selectors and classes enable customization of the React File Upload component’s visual appearance to match specific design requirements.

Customizing the appearance of React File Upload wrapper element

Control the overall React File Upload component dimensions and layout using CSS on the wrapper element.

/* Customize wrapper height and width */
.e-upload.e-control-wrapper, .e-bigger.e-small .e-upload.e-control-wrapper {
        height: 300px;
        width: 300px;
}

Customizing the React File Upload browse button

Apply custom styling to action buttons including font, colors, and dimensions.

/* Customize button styling */
.e-upload .e-file-select-wrap .e-btn, .e-upload .e-upload-actions .e-btn, .e-bigger.e-small .e-upload .e-file-select-wrap .e-btn, .e-bigger.e-small .e-upload .e-upload-actions .e-btn {
        font-family: cursive;
        height: 40px;
        background-color: aquamarine;
        color: coral;
}

Customizing the File Upload content

Customize the drop area text appearance using the file drop class.

/* Customize drop area text styling */
.e-upload .e-file-select-wrap .e-file-drop, .e-bigger.e-small .e-upload .e-file-select-wrap .e-file-drop {
        font-size: 20px;
        color: aqua;
}

Customizing the uploaded file container in React File Upload

Use the following CSS to customize the uploaded file container in File Upload

/* To specify background color */
.e-upload .e-upload-files .e-upload-file-list {
        background-color: beige;
}

See Also