affectUI › Screens › App screens

Folder

Inside one folder: breadcrumbs, file cards with previews, and an empty state.

Part of affectUI Pro. Install: npx shadcn@latest add https://www.affectui.com/r/folder.json · Import from @/components/ui/folder

When to use

  • Detail view of a project, folder or collection
  • Pairs with the Folders screen

When not to use

  • Nested trees deeper than one level

Usage

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])} />;
}

Props

NameTypeDefaultDescription
folderstring"Q3 Campaign"Folder that is open – the title, crumbs and files follow it
onNavigate(label: string) => voidCalled with the label of a sidebar item or project
workspacestring"Acme"Workspace name in the sidebar
user{ name: string; avatar?: string }{ name: "Alex Morgan" }Account at the bottom of the sidebar
classNamestringExtra class on the root

Accessibility

  • Sidebar items, projects and the collapse toggle are real buttons with labels
  • Icons are decorative and hidden from screen readers

Responsive

  • 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

Requirements

  • React 19
  • @hugeicons/react
  • @hugeicons/core-free-icons
  • App Shell Inset (installed with it)