Installation
npx kinetic-ui-cli@latest add file-uploadOverview
A premium, drag-and-drop file upload zone built on top of react-dropzone. It features smooth hover states, dashed borders that react to drag events, and a clean file list preview.
Usage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { FileUpload } from "@/components/ui/file-upload";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { FileUpload } from "@/components/ui/file-upload";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<FileUpload
onFilesChange{/* value */}
maxFiles{10}
label="example"
/>
</div>
);
}