Tusflow UI
A powerful file upload interface built on top of Uppy, providing a seamless and customizable upload experience for Next.js applications.
We are currently working on a new upload UI component using shadcn/ui. Stay tuned for updates!
This installation guide is specifically for Next.js applications. For other frameworks like Angular, Vue, or Svelte, please refer to the official Uppy documentation.
Installation
First, install the required Uppy packages. You can use your preferred package manager:
Setting up the Provider
Create a new file called UppyProvider.tsx
in your components directory:
Creating the File Uploader Component
Create a new file called file-uploader.tsx
in your components directory:
Adding the Provider to Your Layout
Update your app/layout.tsx
to include the UppyProvider:
Usage
You can now use the FileUploader component in any of your pages:
[!important] Make sure to replace
WORKERS_API_ENDPOINT
in the UppyProvider with your actual tus server endpoint.
Styling
The Uppy Dashboard comes with its own styles. Make sure you've imported them in your component:
You can customize the appearance further using Tailwind CSS classes and the theme prop on the Dashboard component.
Last updated on