Loading component…
Loading component…
This component has not been implemented locally yet.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import Folders/Overview from ./files.
import { FilesScreen } from "@/components/ui/files";
export default function Page() {
return <FilesScreen workspace="Acme" user={{ name: "Alex Morgan" }} onNavigate={(label) => router.push(routes[label])} />;
}| Name | Type | Default | Description |
|---|---|---|---|
| onNavigate | (label: string) => void | Called with the label of a sidebar item or project | |
| workspace | string | "Acme" | Workspace name in the sidebar |
| user | { name: string; avatar?: string } | { name: "Alex Morgan" } | Account at the bottom of the sidebar |
| loading | boolean | While your data loads: both sections show gray placeholders in the shape of their cards (the shared Skeleton), so nothing jumps when the data lands | |
| empty | boolean | No data at all: Folders shows “No folders yet” with a New folder button and File templates “No templates yet” with an Add template button; the tabs, search and actions stay | |
| className | string | Extra class on the root |
Fills its container – give it the full viewport height in your app
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"; colors are CSS variables on .ui-as