`. Use it to build fully custom upload UIs without any of the library's default styling.
```tsx
import { useFilesUI } from "@files-ui/react";
function MyCustomUploader() {
const { files, isUploading, uploadFiles, getDragHandlers, getInputProps } = useFilesUI({
accept: "image/*",
maxFileSize: 5 * 1024 * 1024,
url: "/api/upload",
});
return (
);
}
```
---
#### π Server Actions β `action` prop
Native Next.js 16 App Router Server Actions support. Pass a Server Action directly to `` or `` β no manual `fetch()` calls required.
```tsx
// app/actions/upload.ts
"use server";
export async function uploadFile(formData: FormData) {
const file = formData.get("file") as File;
return { success: true, message: `Received ${file.name}` };
}
// app/upload/UploadPanel.tsx
"use client";
import { Dropzone } from "@files-ui/react/client/dropzone";
import { uploadFile } from "../actions/upload";
export default function UploadPanel() {
return ;
}
```
**New Core Exports:**
- π€ `uploadExtFileViaAction(extFile, action, uploadLabel?)` β uploads a single file via Server Action
- π€ `uploadExtFilesViaAction(extFiles, action, uploadLabel?, maxConcurrency?, onFileComplete?)` β uploads multiple files
---
#### π― RSC Client Boundaries
Each interactive component now ships a dedicated client-only import path for safe use in Next.js 16 App Router without accidentally pulling browser code into Server Components.
```tsx
import { Dropzone } from "@files-ui/react/client/dropzone";
import { FileInputButton } from "@files-ui/react/client/file-input-button";
import { FileCard } from "@files-ui/react/client/file-card";
import { FileMosaic } from "@files-ui/react/client/file-mosaic";
import { Avatar } from "@files-ui/react/client/avatar";
import { FullScreen } from "@files-ui/react/client/full-screen";
```
β
The root import `from "@files-ui/react"` continues to work for non-Next.js consumers.
**New Named Exports in Root:**
- `DropzoneClient`, `DropzoneContainer`
- `FileInputButtonClient`, `FileInputButtonContainer`
- `FileCardClient`, `FileCardContainer`
- `FileMosaicClient`, `FileMosaicContainer`
- `AvatarClient`, `AvatarContainer`
- `FullScreenClient`, `FullScreenContainer`
---
#### π¨ Font Loading Behavior (Poppins Opt-in)
**Changes:**
- β
Removed automatic Google Fonts `@import` from component stylesheets
- β
Updated font declarations to use fallback stack:
```css
"Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif
```
- β
Consumers who want `Poppins` should load it explicitly in their application
- π Added documentation: [`docs/react/Fonts.md`](./docs/react/Fonts.md)
**Global `fontFamily` Config via `FilesUiProvider`**
- β
Added `fontFamily` prop to `FilesUIConfig`
- β
When set, injects a single `