File upload preview
Choose or drop files, inspect limits and remove selections.
pro · Forms · composite
When to use
- Use it when a page needs choose or drop files, inspect limits and remove selections.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose form-field instead when a labeled email field with validation and help text is the actual interface need, rather than file upload.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/file-uploadImport components/ui/tidal.css, components/ui/file-upload.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/file-upload.css";
import{TidalFileUpload}from"./components/ui/file-upload";
export default()=><div className="tidal-scope"><TidalFileUpload files={[new File([], "example.txt")]} label={"Demo"} onFilesChange={() => {}}/></div>;API and props
TidalFileUpload.files (required)ReadonlyArray<File>Required files value accepted by this exported component.
TidalFileUpload.label (required)stringRequired label value accepted by this exported component.
TidalFileUpload.onFilesChange (required)(files: File[]) => voidCallback invoked when the files change interaction is proposed.
TidalFileUpload.acceptstring | undefinedOptional accept value accepted by this exported component.
TidalFileUpload.descriptionstring | undefinedOptional description value accepted by this exported component.
TidalFileUpload.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalFileUpload.errorstring | undefinedOptional error value accepted by this exported component.
TidalFileUpload.fileStatesReadonlyMap<File, TidalFileStatus> | undefinedOptional file states value accepted by this exported component.
TidalFileUpload.inputRefRef<HTMLInputElement> | undefinedOptional input ref value accepted by this exported component.
TidalFileUpload.maxFilesnumber | undefinedOptional max files value accepted by this exported component.
TidalFileUpload.maxSizenumber | undefinedOptional max size value accepted by this exported component.
TidalFileUpload.onReject((rejections: TidalFileRejection[]) => void) | undefinedCallback invoked when the reject interaction is proposed.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.