<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5HGSQD2L" height="0" width="0" style="display:none;visibility:hidden" title="GTM"></iframe>

File Tile (draft)

Card based component used to display files

Default

The FileTile component is designed to display individual files.

The preview has been updated.

Layout

You can change the UI layout by setting layout="list" for a list view or layout="thumb" for the default thumb view.

The preview has been updated.

Skin

Use the skin prop to specify what state the FileTile is such as standard, loading, queued, error.

The preview has been updated.

Error

To show an error on a FileTile, set skin="error" and set an errorMessage. Ensure that a FileTile with an error is always wrapped in a FormField in order to access the form context.

The preview has been updated.

Thumbnail

If you'd like to provide a file preview, you can pass an image as a child to the FileThumbnail, otherwise a file icon will be displayed.

The preview has been updated.

FileDescription

The fileDescription prop is used to show extra meta about the file. This could include file size or file dimensions e.g. 3.56 MB or 600px x 400px.

The preview has been updated.

Errors

If your FileTile has skin="error" or an errorMessage, then it needs to be wrapped in a FormField component so that the form context exists. Pairing this with a FileDropzone will automatically pickup the errors from FileTile and apply them to the file input in the FileDropzone.