File Uploader
A file field with the accepted types listed under it, and uploading, error, and success states.
Max File Size: 100TB
Accepted Files: JSON
Playground
Max File Size: 100TB
Accepted Files: JSON
Variants and states
| Property | Options | Notes |
|---|---|---|
| accept | JSON, XML, CSV, PNG, JPG | Shown under the field as Accepted Files. |
| status | default, uploading, error, success | Error uses the danger field. Success shows the file name and size. |
| required | true / false | The red asterisk is hidden by default. |
| info | true / false | The info icon is hidden by default. |
Anatomy
- Label
- File Upload. The required mark and info icon are hidden until turned on.
- Field
- 36px. Upload, spinner, alert, or check, with the status text.
- Helpers
- Max file size and accepted types.
Accessibility
- The drop zone is a label for a real file input.
- Progress exposes a label with the file name.