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/Detail from ./folder.
import { FolderScreen } from "@/components/ui/folder";
export default function Page() {
return <FolderScreen folder="Q3 Campaign" workspace="Acme" user={{ name: "Alex Morgan" }} onNavigate={(label) => router.push(routes[label])} />;
}| Name | Type | Default | Description |
|---|---|---|---|
| folder | string | "Q3 Campaign" | Folder that is open – the title, crumbs and files follow it |
| 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: gray file cards in the shape of the real ones; the title, crumbs and actions stay | |
| empty | boolean | No files in the folder: “No files yet” with a short hint and a Work in folder button that starts a chat; uploads still land in the list | |
| 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