Skip to content

Add file input component #722

@connor-baer

Description

@connor-baer

Visual

These are mockups and should not be used as the final design.

FileInput

Context

This component can be used when a user is asked to upload any type of file. Examples include a profile photo, documents for verification, or paper receipts.

State

The component has multiple states which are not mutually exclusive:

  1. Hovered
  2. Focused
  3. Active (when a user is dragging files over the dropzone)
  4. Uploading
  5. Single file vs multiple files: when multiple files can be uploaded, the component displays the selected files in a list.

Progressive enhancement

The component should be built on top of the native file input element (<input type="file" />). This ensures the greatest compatibility and best user experience on all devices.

Further reading: Using files from web applications (MDN)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA new feature or enhancement⚛️ componentChanges to a React component🎨 designRequires input from designers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions